mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-23 19:59:57 +00:00
6d4e5ab349
This changes the tests that were targeting ARM EABI to explicitly specify the environment rather than relying on the default. This breaks with the new Windows on ARM support when running the tests on Windows where the default environment is no longer EABI. Take the opportunity to avoid a pointless redirect (helps when trying to debug with providing a command line invocation which can be copy and pasted) and removing a few greps in favour of FileCheck. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205465 91177308-0d34-0410-b5e6-96231b3b80d8
12 lines
256 B
LLVM
12 lines
256 B
LLVM
; RUN: llc -mtriple=arm-eabi %s -o - | FileCheck %s
|
|
; Radar 7213850
|
|
|
|
define i32 @test(i8* %d, i32 %x, i32 %y) nounwind {
|
|
%1 = ptrtoint i8* %d to i32
|
|
;CHECK: sub
|
|
%2 = sub i32 %x, %1
|
|
%3 = add nsw i32 %2, %y
|
|
store i8 0, i8* %d, align 1
|
|
ret i32 %3
|
|
}
|