You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
442 B

; RUN: llc -march=bpfel -filetype=obj -o - %s | llvm-objdump -d - | FileCheck %s
;
; Source:
; int test() {
; asm volatile("r0 = r0" ::);
; return 0;
; }
; Compilation flag:
; clang -target bpf -O2 -S -emit-llvm t.c
; Function Attrs: nounwind
define dso_local i32 @test() local_unnamed_addr {
entry:
tail call void asm sideeffect "r0 = r0", ""()
ret i32 0
}
; CHECK-LABEL: test
; CHECK: r0 = r0
; CHECK: r0 = 0