Home | History | Annotate | Download | only in X86
      1 ; RUN: llc < %s -march=x86 -x86-asm-syntax=intel | \
      2 ; RUN:   grep "shld.*cl"
      3 ; RUN: llc < %s -march=x86 -x86-asm-syntax=intel | \
      4 ; RUN:   not grep "mov cl, bl"
      5 
      6 ; PR687
      7 
      8 define i64 @foo(i64 %x, i64* %X) {
      9         %tmp.1 = load i64, i64* %X           ; <i64> [#uses=1]
     10         %tmp.3 = trunc i64 %tmp.1 to i8         ; <i8> [#uses=1]
     11         %shift.upgrd.1 = zext i8 %tmp.3 to i64          ; <i64> [#uses=1]
     12         %tmp.4 = shl i64 %x, %shift.upgrd.1             ; <i64> [#uses=1]
     13         ret i64 %tmp.4
     14 }
     15 
     16