File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 1+ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 4
12; RUN: llc < %s | FileCheck %s
23
34; Check that the shr(shl X, 56), 48) is not mistakenly turned into
@@ -16,11 +17,13 @@ target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f3
1617target triple = "x86_64-unknown-linux-gnu"
1718
1819define i64 @foo (i64 %b ) nounwind readnone {
19- entry:
2020; CHECK-LABEL: foo:
21- ; CHECK: movsbq %dil, %rax
22- ; CHECK: shlq $8, %rax
23- ; CHECK: orq $1, %rax
21+ ; CHECK: # %bb.0: # %entry
22+ ; CHECK-NEXT: movsbq %dil, %rax
23+ ; CHECK-NEXT: shlq $8, %rax
24+ ; CHECK-NEXT: orq $1, %rax
25+ ; CHECK-NEXT: retq
26+ entry:
2427 %shl = shl i64 %b , 56 ; <i64> [#uses=1]
2528 %shr = ashr i64 %shl , 48 ; <i64> [#uses=1]
2629 %add5 = or i64 %shr , 1 ; <i64> [#uses=1]
You can’t perform that action at this time.
0 commit comments