Home | History | Annotate | Download | only in X86
      1 ; RUN: llc < %s -march=x86 | not grep movsd
      2 ; RUN: llc < %s -march=x86 | grep movw
      3 ; RUN: llc < %s -march=x86 | grep addw
      4 ; These transforms are turned off for volatile loads and stores.
      5 ; Check that they weren't turned off for all loads and stores!
      6 
      7 @atomic = global double 0.000000e+00		; <double*> [#uses=1]
      8 @atomic2 = global double 0.000000e+00		; <double*> [#uses=1]
      9 @ioport = global i32 0		; <i32*> [#uses=1]
     10 @ioport2 = global i32 0		; <i32*> [#uses=1]
     11 
     12 define i16 @f(i64 %x) {
     13 	%b = bitcast i64 %x to double		; <double> [#uses=1]
     14 	store double %b, double* @atomic
     15 	store double 0.000000e+00, double* @atomic2
     16 	%l = load i32* @ioport		; <i32> [#uses=1]
     17 	%t = trunc i32 %l to i16		; <i16> [#uses=1]
     18 	%l2 = load i32* @ioport2		; <i32> [#uses=1]
     19 	%tmp = lshr i32 %l2, 16		; <i32> [#uses=1]
     20 	%t2 = trunc i32 %tmp to i16		; <i16> [#uses=1]
     21 	%f = add i16 %t, %t2		; <i16> [#uses=1]
     22 	ret i16 %f
     23 }
     24