brintos

brintos / llvm-project-archived public Read only

0
0
Text · 897 B · 6c42543 Raw
32 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s | FileCheck %s3;4; Check that the isel does not fold the shld, which already folds a load5; and has two uses, into a store.6 7target triple = "i686-unknown-unknown"8 9@A = external dso_local global i3210 11define i32 @test5(i32 %B, i8 %C) {12; CHECK-LABEL: test5:13; CHECK:       # %bb.0: # %entry14; CHECK-NEXT:    movzbl {{[0-9]+}}(%esp), %ecx15; CHECK-NEXT:    movl {{[0-9]+}}(%esp), %edx16; CHECK-NEXT:    movl A, %eax17; CHECK-NEXT:    shldl %cl, %edx, %eax18; CHECK-NEXT:    movl %eax, A19; CHECK-NEXT:    retl20entry:21  %tmp.1 = load i32, ptr @A22  %shift.upgrd.1 = zext i8 %C to i3223  %tmp.2 = shl i32 %tmp.1, %shift.upgrd.124  %tmp.3 = sub i8 32, %C25  %shift.upgrd.2 = zext i8 %tmp.3 to i3226  %tmp.4 = lshr i32 %B, %shift.upgrd.227  %tmp.5 = or i32 %tmp.4, %tmp.228  store i32 %tmp.5, ptr @A29  ret i32 %tmp.530}31 32