File: aix_scalar_vector_permuted.ll

package info (click to toggle)
llvm-toolchain-16 1%3A16.0.6-15~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,634,792 kB
  • sloc: cpp: 6,179,261; ansic: 1,216,205; asm: 741,319; python: 196,614; objc: 75,325; f90: 49,640; lisp: 32,396; pascal: 12,286; sh: 9,394; perl: 7,442; ml: 5,494; awk: 3,523; makefile: 2,723; javascript: 1,206; xml: 886; fortran: 581; cs: 573
file content (78 lines) | stat: -rw-r--r-- 2,749 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc -mcpu=pwr8 -verify-machineinstrs -ppc-vsr-nums-as-vr \
; RUN:   -ppc-asm-full-reg-names -mtriple=powerpc64-ibm-aix-xcoff < %s | \
; RUN: FileCheck %s --check-prefix=AIX-P8-64
; RUN: llc -mcpu=pwr8 -verify-machineinstrs -ppc-vsr-nums-as-vr \
; RUN:   -ppc-asm-full-reg-names -mtriple=powerpc-ibm-aix-xcoff < %s | \
; RUN: FileCheck %s --check-prefix=AIX-P8-32
; RUN: llc -mcpu=pwr9 -verify-machineinstrs -ppc-vsr-nums-as-vr \
; RUN:   -ppc-asm-full-reg-names -mtriple=powerpc64-ibm-aix-xcoff < %s | \
; RUN: FileCheck %s --check-prefix=AIX-P9-64
; RUN: llc -mcpu=pwr9 -verify-machineinstrs -ppc-vsr-nums-as-vr \
; RUN:   -ppc-asm-full-reg-names -mtriple=powerpc-ibm-aix-xcoff < %s | \
; RUN: FileCheck %s --check-prefix=AIX-P9-32

%d8 = type <8 x double>
%f1 = type <1 x float>
%f2 = type <2 x float>
%f4 = type <4 x float>
%f8 = type <8 x float>
%i4 = type <4 x i32>

define void @test_f2(ptr %P, ptr %Q, ptr %S) {
; AIX-P8-64-LABEL: test_f2:
; AIX-P8-64:       # %bb.0:
; AIX-P8-64-NEXT:    lfdx f0, 0, r3
; AIX-P8-64-NEXT:    lfdx f1, 0, r4
; AIX-P8-64-NEXT:    xvaddsp vs0, vs0, vs1
; AIX-P8-64-NEXT:    stfdx f0, 0, r5
; AIX-P8-64-NEXT:    blr
;
; AIX-P8-32-LABEL: test_f2:
; AIX-P8-32:       # %bb.0:
; AIX-P8-32-NEXT:    li r6, 4
; AIX-P8-32-NEXT:    lxsiwzx v3, 0, r3
; AIX-P8-32-NEXT:    lxsiwzx v5, 0, r4
; AIX-P8-32-NEXT:    lxsiwzx v2, r3, r6
; AIX-P8-32-NEXT:    lxsiwzx v4, r4, r6
; AIX-P8-32-NEXT:    vmrgow v2, v3, v2
; AIX-P8-32-NEXT:    vmrgow v3, v5, v4
; AIX-P8-32-NEXT:    xvaddsp vs0, v2, v3
; AIX-P8-32-NEXT:    xxsldwi vs1, vs0, vs0, 1
; AIX-P8-32-NEXT:    xscvspdpn f0, vs0
; AIX-P8-32-NEXT:    xscvspdpn f1, vs1
; AIX-P8-32-NEXT:    stfs f0, 0(r5)
; AIX-P8-32-NEXT:    stfs f1, 4(r5)
; AIX-P8-32-NEXT:    blr
;
; AIX-P9-64-LABEL: test_f2:
; AIX-P9-64:       # %bb.0:
; AIX-P9-64-NEXT:    lfd f0, 0(r3)
; AIX-P9-64-NEXT:    lfd f1, 0(r4)
; AIX-P9-64-NEXT:    xvaddsp vs0, vs0, vs1
; AIX-P9-64-NEXT:    stfd f0, 0(r5)
; AIX-P9-64-NEXT:    blr
;
; AIX-P9-32-LABEL: test_f2:
; AIX-P9-32:       # %bb.0:
; AIX-P9-32-NEXT:    li r6, 4
; AIX-P9-32-NEXT:    lxsiwzx v3, 0, r3
; AIX-P9-32-NEXT:    lxsiwzx v4, 0, r4
; AIX-P9-32-NEXT:    lxsiwzx v2, r3, r6
; AIX-P9-32-NEXT:    vmrgow v2, v3, v2
; AIX-P9-32-NEXT:    lxsiwzx v3, r4, r6
; AIX-P9-32-NEXT:    vmrgow v3, v4, v3
; AIX-P9-32-NEXT:    xvaddsp vs0, v2, v3
; AIX-P9-32-NEXT:    xscvspdpn f1, vs0
; AIX-P9-32-NEXT:    xxsldwi vs0, vs0, vs0, 1
; AIX-P9-32-NEXT:    xscvspdpn f0, vs0
; AIX-P9-32-NEXT:    stfs f1, 0(r5)
; AIX-P9-32-NEXT:    stfs f0, 4(r5)
; AIX-P9-32-NEXT:    blr
  %p = load %f2, ptr %P
  %q = load %f2, ptr %Q
  %R = fadd %f2 %p, %q
  store %f2 %R, ptr %S
  ret void
}