aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/tools/llvm-objdump/ELF/Lanai/smoke.ll
blob: 753151449f258fe9f3cf01568575eef09bd8259b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; 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
}