mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
0aba46f4cd
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198617 91177308-0d34-0410-b5e6-96231b3b80d8
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
|
|
}
|