mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
bce7c549c3
- add -ppc-reg-with-percent-prefix option to use %r3 etc as register names - split off logic for Darwinish verbose conditional codes into a helper function - be explicit about Darwin vs AIX vs GNUish assembler flavors Based on the patch from Alexandre Yukio Yamashita Differential Revision: https://reviews.llvm.org/D39016 llvm-svn: 319381
21 lines
587 B
LLVM
21 lines
587 B
LLVM
; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu < %s | FileCheck %s
|
|
; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -ppc-asm-full-reg-names < %s | FileCheck -check-prefix=CHECK-FN %s
|
|
; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -ppc-reg-with-percent-prefix < %s | FileCheck -check-prefix=CHECK-PN %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-PN: mr %r3, %r4
|
|
|
|
; CHECK: blr
|
|
; CHECK-FN: blr
|
|
; CHECK-PN: blr
|
|
}
|
|
|