bolt/deps/llvm-18.1.8/llvm/test/tools/llvm-objdump/ELF/Lanai/smoke.ll
2025-02-14 19:21:04 +01:00

13 lines
393 B
LLVM

; RUN: llc -o %t.bc -filetype=obj -mtriple=lanai %s
; RUN: llvm-objdump -d -S %t.bc | FileCheck %s
;; Ensure that Lanai can be compiled using llc and then objdumped to
;; assembly. This is a smoke test to exercise the basics of the MC
;; implementation in Lanai.
; CHECK-LABEL: smoketest
; CHECK: st %fp, [--%sp]
define i32 @smoketest(i32 %x, i32 %y) {
%z = add i32 %x, %y
ret i32 %z
}