brintos

brintos / llvm-project-archived public Read only

0
0
Text · 547 B · b9892fc Raw
18 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 32; RUN: llc -global-isel --aarch64-enable-sink-fold=true < %s | FileCheck %s3 4target triple = "aarch64-linux"5 6; Test a non-LSL shift cannot be folded into the addressing mode.7define void @f(ptr %p, i64 %i) optsize {8; CHECK-LABEL: f:9; CHECK:       // %bb.0:10; CHECK-NEXT:    add x8, x0, x1, asr #3211; CHECK-NEXT:    strb wzr, [x8]12; CHECK-NEXT:    ret13	%d = ashr i64 %i, 3214	%a = getelementptr i8, ptr %p, i64 %d15	store i8 0, ptr %a16	ret void17}18