blob: e8fd2516b5a5bdc04c58c40fbd8f0a722a51e3d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
; RUN: llc < %s -mtriple=powerpc-unknown-linux-gnu | FileCheck %s
; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu | FileCheck %s
; RUN: llc < %s -mtriple=powerpc-apple-darwin | FileCheck %s
; RUN: llc < %s -mtriple=powerpc64-apple-darwin | FileCheck %s
; This test verifies that we choose "assembler variant 1" (which GCC
; uses for "new-style mnemonics" as opposed to POWER mnemonics) when
; processing multi-variant inline asm statements, on all subtargets.
; CHECK: subfe
; CHECK-NOT: sfe
define i32 @test(i32 %in1, i32 %in2) {
entry:
%0 = tail call i32 asm "$(sfe$|subfe$) $0,$1,$2", "=r,r,r"(i32 %in1, i32 %in2)
ret i32 %0
}
|