mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-21 03:53:04 +02:00
ba4f461411
Summary: Also test 64-bit integers, except shifts for now which are broken because isel dislikes the 32-bit truncate that precedes them. Reviewers: sunfish Subscribers: llvm-commits, jfb Differential Revision: http://reviews.llvm.org/D11699 llvm-svn: 243822
21 lines
548 B
LLVM
21 lines
548 B
LLVM
; RUN: llc < %s -asm-verbose=false | FileCheck %s
|
|
|
|
; Make sure that argument offsets are correct even if some arguments are unused.
|
|
|
|
target datalayout = "e-p:32:32-i64:64-v128:8:128-n32:64-S128"
|
|
target triple = "wasm32-unknown-unknown"
|
|
|
|
; CHECK-LABEL: unused_first:
|
|
; CHECK-NEXT: (setlocal @0 (argument 1))
|
|
; CHECK-NEXT: (return @0)
|
|
define i32 @unused_first(i32 %x, i32 %y) {
|
|
ret i32 %y
|
|
}
|
|
|
|
; CHECK-LABEL: unused_second:
|
|
; CHECK-NEXT: (setlocal @0 (argument 0))
|
|
; CHECK-NEXT: (return @0)
|
|
define i32 @unused_second(i32 %x, i32 %y) {
|
|
ret i32 %x
|
|
}
|