File: ppc64-xxsplti32dx-pattern-check.ll

package info (click to toggle)
llvm-toolchain-14 1%3A14.0.6-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,496,180 kB
  • sloc: cpp: 5,593,972; ansic: 986,872; asm: 585,869; python: 184,223; objc: 72,530; lisp: 31,119; f90: 27,793; javascript: 9,780; pascal: 9,762; sh: 9,482; perl: 7,468; ml: 5,432; awk: 3,523; makefile: 2,538; xml: 953; cs: 573; fortran: 567
file content (41 lines) | stat: -rw-r--r-- 1,599 bytes parent folder | download | duplicates (7)
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
; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-- \
; RUN:   -mcpu=pwr10 -ppc-asm-full-reg-names < %s | FileCheck %s
; RUN: llc -verify-machineinstrs -mtriple=powerpc64-- \
; RUN:   -mcpu=pwr10 -ppc-asm-full-reg-names < %s | FileCheck %s

; CHECK-NOT: Impossible reg-to-reg copy
; CHECK-LABEL: test_xxsplti32dx
; CHECK:         xxsplti32dx

;; Test reduced from larger application where bug was initially detected.
;; This test checks that the correct register class is used for xxsplti32dx.

declare dso_local void @callee() local_unnamed_addr

define dso_local void @test_xxsplti32dx() local_unnamed_addr {
entry:
  %i1 = load double, double* undef, align 8
  br label %for.body124

for.body124:
  %E0 = phi double [ 0.000000e+00, %entry ], [ %E1, %for.end1072 ]
  br i1 undef, label %for.body919.preheader, label %for.end1072

for.body919.preheader:
  %i4 = load double, double* null, align 8
  %i5 = load double, double* null, align 8
  %i15 = insertelement <2 x double> poison, double %i5, i32 0
  %i23 = insertelement <2 x double> undef, double %i4, i32 1
  %i24 = insertelement <2 x double> %i15, double 0x3FC5555555555555, i32 1
  %i25 = fmul fast <2 x double> %i23, %i24
  %mul986 = extractelement <2 x double> %i25, i32 1
  %sub994 = fsub fast double %E0, %mul986
  br label %for.end1072

for.end1072:
  %E1 = phi double [ %E0, %for.body124 ], [ %sub994, %for.body919.preheader ]
  %i28 = phi <2 x double> [ zeroinitializer, %for.body124 ], [ %i15, %for.body919.preheader ]
  tail call void @callee()
  store <2 x double> %i28, <2 x double>* undef, align 8
  br label %for.body124
}