forked from OSchip/llvm-project
11 lines
331 B
LLVM
11 lines
331 B
LLVM
; RUN: llc -mtriple=arm64-apple-ios %s -o - -stop-after=finalize-isel 2>&1 | FileCheck %s
|
|
|
|
define void @foo(i64 %a, i64 %b, i32* %ptr) {
|
|
; CHECK-LABEL: name: foo
|
|
; CHECK: STRWui {{.*}} (volatile store (s32) into %ir.ptr)
|
|
%sum = add i64 %a, 1
|
|
%sum.32 = trunc i64 %sum to i32
|
|
store volatile i32 %sum.32, i32* %ptr
|
|
ret void
|
|
}
|