mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
e0e3fee19b
The ARM backend has been using most of the MachO related subtarget checks almost interchangeably, and since the only target it's had to run on has been IOS (which is all three of MachO, Darwin and IOS) it's worked out OK so far. But we'd like to support embedded targets under the "*-*-none-macho" triple, which means everything starts falling apart and inconsistent behaviours emerge. This patch should pick a reasonably sensible set of behaviours for the new triple (and any others that come along, with luck). Some choices were debatable (notably FP == r7 or r11), but we can revisit those later when deficiencies become apparent. llvm-svn: 198617
11 lines
288 B
LLVM
11 lines
288 B
LLVM
; RUN: llc < %s -O0 -verify-machineinstrs -mtriple=thumbv7-apple-darwin
|
|
; RUN: llc < %s -O0 -verify-machineinstrs -mtriple=armv7-linux-gnueabi
|
|
; rdar://9515076
|
|
; (Make sure this doesn't crash.)
|
|
|
|
define i32 @test(i32 %i) {
|
|
%t = trunc i32 %i to i4
|
|
%r = sext i4 %t to i32
|
|
ret i32 %r
|
|
}
|