brintos

brintos / llvm-project-archived public Read only

0
0
Text · 767 B · 1adeeab Raw
25 lines · plain
1; RUN: llc -mtriple=aarch64-linux-gnu < %s | FileCheck %s2 3; Reduced test from https://github.com/llvm/llvm-project/issues/60645.4; To check that we are generating -32 as offset for the first store.5 6define ptr @pr60645(ptr %ptr, i64 %t0) {7; CHECK-LABEL: pr60645:8; CHECK:       // %bb.0:9; CHECK-NEXT:    sub x8, x0, x1, lsl #210; CHECK-NEXT:    str wzr, [x8, #-32]!11; CHECK-NEXT:    stur wzr, [x8, #-8]12; CHECK-NEXT:    ret13  %t1 = add nuw nsw i64 %t0, 814  %t2 = mul i64 %t1, -415  %t3 = getelementptr i8, ptr %ptr, i64 %t216  %t4 = bitcast ptr %t3 to ptr17  store i32 0, ptr %t4, align 418  %t5 = shl i64 %t1, 219  %t6 = sub nuw nsw i64 -8, %t520  %t7 = getelementptr i8, ptr %ptr, i64 %t621  %t8 = bitcast ptr %t7 to ptr22  store i32 0, ptr %t8, align 423  ret ptr %ptr24}25