mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-21 00:32:23 +00:00
f14beced2b
On non-Darwin PPC systems, we currently strip off the register name prefix prior to instruction printing. So instead of something like this: mr r3, r4 we print this: mr 3, 4 The first form is the default on Darwin, and is understood by binutils, but not yet understood by our integrated assembler. Once our integrated-as understands full register names as well, this temporary option will be replaced by tying this functionality to the verbose-asm option. The numeric-only form is compatible with legacy assemblers and tools, and is also gcc's default on most PPC systems. On the other hand, it is harder to read, and there are some analysis tools that expect full register names. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194384 91177308-0d34-0410-b5e6-96231b3b80d8
18 lines
361 B
LLVM
18 lines
361 B
LLVM
; RUN: llc -mtriple=powerpc64-unknown-linux-gnu < %s | FileCheck %s
|
|
; RUN: llc -mtriple=powerpc64-unknown-linux-gnu -ppc-asm-full-reg-names < %s | FileCheck -check-prefix=CHECK-FN %s
|
|
|
|
define i64 @test1(i64 %a, i64 %b) {
|
|
; CHECK-LABEL: @test1
|
|
; CHECK-FN-LABEL: @test1
|
|
|
|
entry:
|
|
ret i64 %b
|
|
|
|
; CHECK: mr 3, 4
|
|
; CHECK-FN: mr r3, r4
|
|
|
|
; CHECK: blr
|
|
; CHECK-FN: blr
|
|
}
|
|
|