mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-28 02:16:06 +00:00

The data layout strings do not have any effect on llc tests and will become misleadingly out of date as we continue to update the canonical data layout, so remove them from the tests. Differential Revision: https://reviews.llvm.org/D105842
29 lines
844 B
LLVM
29 lines
844 B
LLVM
; RUN: llc < %s -asm-verbose=false -disable-wasm-fallthrough-return-opt -wasm-disable-explicit-locals -wasm-keep-registers | FileCheck %s
|
|
|
|
; Make sure that argument offsets are correct even if some arguments are unused.
|
|
|
|
target triple = "wasm32-unknown-unknown"
|
|
|
|
; CHECK-LABEL: unused_first:
|
|
; CHECK-NEXT: .functype unused_first (i32, i32) -> (i32){{$}}
|
|
; CHECK-NEXT: return $1{{$}}
|
|
define i32 @unused_first(i32 %x, i32 %y) {
|
|
ret i32 %y
|
|
}
|
|
|
|
; CHECK-LABEL: unused_second:
|
|
; CHECK-NEXT: .functype unused_second (i32, i32) -> (i32){{$}}
|
|
; CHECK-NEXT: return $0{{$}}
|
|
define i32 @unused_second(i32 %x, i32 %y) {
|
|
ret i32 %x
|
|
}
|
|
|
|
; CHECK-LABEL: call_something:
|
|
; CHECK: {{^}} call $drop=, return_something{{$}}
|
|
; CHECK-NEXT: return{{$}}
|
|
declare i32 @return_something()
|
|
define void @call_something() {
|
|
call i32 @return_something()
|
|
ret void
|
|
}
|