File: PR40267.ll

package info (click to toggle)
llvm-toolchain-15 1%3A15.0.6-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,554,644 kB
  • sloc: cpp: 5,922,452; ansic: 1,012,136; asm: 674,362; python: 191,568; objc: 73,855; f90: 42,327; lisp: 31,913; pascal: 11,973; javascript: 10,144; sh: 9,421; perl: 7,447; ml: 5,527; awk: 3,523; makefile: 2,520; xml: 885; cs: 573; fortran: 567
file content (21 lines) | stat: -rw-r--r-- 957 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
; RUN: llc < %s -asm-verbose=false -verify-machineinstrs -disable-wasm-fallthrough-return-opt -wasm-disable-explicit-locals -wasm-keep-registers

; Regression test for PR40267. Tests that invalid indices in
; extract_vector_elt can be handled when vectors ops are split. Notice
; that SIMD is not enabled for this test. Check only that llc does not
; crash, since it would previously trigger an assertion.

target triple = "wasm32-unknown-unknown"

define void @foo() {
  %L6 = load i32, i32* undef
  br label %BB1

BB1:                                              ; preds = %BB1, %0
  %bj = select <4 x i1> <i1 true, i1 true, i1 false, i1 false>, <4 x i32> <i32 55, i32 21, i32 92, i32 68>, <4 x i32> <i32 51, i32 61, i32 62, i32 39>
  %E1 = extractelement <4 x i32> %bj, i32 0
  %E23 = extractelement <4 x i32> zeroinitializer, i32 %E1
  %I33 = insertelement <4 x i32> undef, i32 %E23, i1 undef
  store <4 x i32> %I33, <4 x i32>* undef
  br label %BB1
}