Home | History | Annotate | Download | only in X86
      1 ; RUN: llc < %s -march=x86 | not grep mov
      2 ;
      3 ; Test the add and load are folded into the store instruction.
      4 
      5 @X = internal global i16 0              ; <i16*> [#uses=2]
      6 
      7 define void @foo() nounwind {
      8         %tmp.0 = load i16* @X           ; <i16> [#uses=1]
      9         %tmp.3 = add i16 %tmp.0, 329            ; <i16> [#uses=1]
     10         store i16 %tmp.3, i16* @X
     11         ret void
     12 }
     13 
     14