bolt/deps/llvm-18.1.8/llvm/test/CodeGen/AArch64/GlobalISel/inttoptr_add.ll
2025-02-14 19:21:04 +01:00

15 lines
521 B
LLVM

; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc -mtriple=aarch64 -global-isel -verify-machineinstrs %s -o - | FileCheck %s
define dso_local void @fn() {
; CHECK-LABEL: fn:
; CHECK: // %bb.0: // %entry
; CHECK-NEXT: mov x8, #4132
; CHECK-NEXT: mov w9, #1
; CHECK-NEXT: movk x8, #65489, lsl #16
; CHECK-NEXT: str w9, [x8]
; CHECK-NEXT: ret
entry:
store i32 1, ptr getelementptr inbounds (i8, ptr inttoptr (i32 -3076096 to ptr), i64 36), align 4
ret void
}