brintos

brintos / llvm-project-archived public Read only

0
0
Text · 506 B · f437074 Raw
20 lines · plain
1; RUN: llc -mtriple arm64-ios- -aarch64-enable-sink-fold=true  %s -o - | FileCheck %s2 3; Check the -8 constant is shrunk if there are multiple users of the AND instruction.4 5; CHECK-LABEL:  _test:6; CHECK:          and x19, x0, #0xfffffff87; CHECK-NEXT:     mov x0, x198; CHECK-NEXT:     bl  _user9; CHECK:          add x0, x19, #1010 11define i64 @test(i32 %a) {12  %ext = zext i32 %a to i6413  %v1 = and i64 %ext, -814  %v2 = add i64 %v1, 1015  call void @user(i64 %v1)16  ret i64 %v217}18 19declare void @user(i64)20