File: llvm-stress-s2501752154-simplified.ll

package info (click to toggle)
llvm-toolchain-7 1%3A7.0.1-8~deb9u3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 733,456 kB
  • sloc: cpp: 3,776,651; ansic: 633,271; asm: 350,301; python: 142,716; objc: 107,612; sh: 22,626; lisp: 11,056; perl: 7,999; pascal: 6,742; ml: 5,537; awk: 3,536; makefile: 2,557; cs: 2,027; xml: 841; ruby: 156
file content (27 lines) | stat: -rw-r--r-- 1,043 bytes parent folder | download | duplicates (13)
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
; RUN: llc -march=mips < %s
; RUN: llc -march=mips -mattr=+msa,+fp64 < %s
; RUN: llc -march=mipsel < %s
; RUN: llc -march=mipsel -mattr=+msa,+fp64 < %s

; This test originally failed for MSA with a "Cannot select ..." error.
; This happened because the legalizer treated undef's in the <4 x float>
; constant as equivalent to the defined elements when checking if it a constant
; splat, but then proceeded to legalize the undef's to zero, leaving it as a
; non-splat that cannot be selected. It should have eliminated the undef's by
; rewriting the splat constant.

; It should at least successfully build.

define void @autogen_SD2501752154() {
BB:
  %BC = bitcast <4 x i32> <i32 -1, i32 -1, i32 undef, i32 undef> to <4 x float>
  br label %CF74

CF74:                                             ; preds = %CF74, %CF
  %E54 = extractelement <1 x i1> undef, i32 0
  br i1 %E54, label %CF74, label %CF79

CF79:                                             ; preds = %CF75
  %I63 = insertelement <4 x float> %BC, float undef, i32 0
  ret void
}