1 ; RUN: llc -verify-machineinstrs -ppc-vsr-nums-as-vr -ppc-asm-full-reg-names -mcpu=pwr9 -mtriple=powerpc64le-unknown-unknown < %s | FileCheck %s
2 define signext i32 @foo(<4 x float> %__A) {
4 %0 = tail call { i32, <4 x float> } asm "xxsldwi ${1:x},${2:x},${2:x},3;\0Axscvspdp ${1:x},${1:x};\0Afctiw $1,$1;\0Amfvsrd $0,${1:x};\0A", "=r,=&^wa,^wa"(<4 x float> %__A)
5 %asmresult = extractvalue { i32, <4 x float> } %0, 0
9 ; CHECK: xxsldwi vs0, v2, v2, 3
10 ; CHECK: xscvspdp f0, f0
12 ; CHECK: mffprd r3, f0
16 define signext i32 @foo1(<4 x float> %__A) {
18 %0 = tail call { i32, <4 x float> } asm "xxsldwi ${1:x},${2:x},${2:x},3;\0Axscvspdp ${1:x},${1:x};\0Afctiw $1,$1;\0Amfvsrd $0,${1:x};\0A", "=r,=&^wi,^wa"(<4 x float> %__A)
19 %asmresult = extractvalue { i32, <4 x float> } %0, 0
24 ; CHECK: xxsldwi vs0, v2, v2, 3
25 ; CHECK: xscvspdp f0, f0
27 ; CHECK: mffprd r3, f0
32 define double @test() {
34 %0 = tail call double asm "mtvsrd ${0:x}, 1", "=^ws,~{f0},~{f1},~{f2},~{f3},~{f4},~{f5},~{f6},~{f7},~{f8},~{f9},~{f10},~{f11},~{f12},~{f13},~{f14}"()
38 ; CHECK: mtvsrd v2, r1
42 define float @test_ww(float %x, float %y) {
43 %1 = tail call float asm "xsmaxdp ${0:x}, ${1:x}, ${2:x}", "=^ww,^ww,^ww"(float %x, float %y)
45 ; CHECK-LABEL: test_ww:
47 ; CHECK: xsmaxdp f1, f1, f2