File: pr112710.ll

package info (click to toggle)
llvm-toolchain-20 1%3A20.1.6-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,111,304 kB
  • sloc: cpp: 7,438,677; ansic: 1,393,822; asm: 1,012,926; python: 241,650; f90: 86,635; objc: 75,479; lisp: 42,144; pascal: 17,286; sh: 10,027; ml: 5,082; perl: 4,730; awk: 3,523; makefile: 3,349; javascript: 2,251; xml: 892; fortran: 672
file content (40 lines) | stat: -rw-r--r-- 1,449 bytes parent folder | download | duplicates (6)
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
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
; RUN: llc < %s -mtriple=armv7-- | FileCheck %s

; Reduced regression test for infinite-loop due to #112710
define void @test(i32 %bf.load.i) {
; CHECK-LABEL: test:
; CHECK:       @ %bb.0: @ %entry
; CHECK-NEXT:    push {r11, lr}
; CHECK-NEXT:    vldr d16, .LCPI0_0
; CHECK-NEXT:    vmov.i64 q9, #0xffff
; CHECK-NEXT:    vdup.32 d17, r0
; CHECK-NEXT:    vneg.s32 d16, d16
; CHECK-NEXT:    vshl.u32 d16, d17, d16
; CHECK-NEXT:    vldr d17, .LCPI0_1
; CHECK-NEXT:    vand d16, d16, d17
; CHECK-NEXT:    vmovl.u32 q8, d16
; CHECK-NEXT:    vand q8, q8, q9
; CHECK-NEXT:    vst1.64 {d16, d17}, [r0]
; CHECK-NEXT:    bl use
; CHECK-NEXT:    .p2align 3
; CHECK-NEXT:  @ %bb.1:
; CHECK-NEXT:  .LCPI0_0:
; CHECK-NEXT:    .long 8 @ 0x8
; CHECK-NEXT:    .long 24 @ 0x18
; CHECK-NEXT:  .LCPI0_1:
; CHECK-NEXT:    .long 4095 @ 0xfff
; CHECK-NEXT:    .long 1 @ 0x1
entry:
  %0 = insertelement <2 x i32> poison, i32 %bf.load.i, i64 0
  %1 = shufflevector <2 x i32> %0, <2 x i32> poison, <2 x i32> zeroinitializer
  %2 = lshr <2 x i32> %1, <i32 8, i32 24>
  %arrayinit.element1.i = getelementptr inbounds i8, ptr poison, i32 16
  %3 = trunc <2 x i32> %2 to <2 x i16>
  %4 = and <2 x i16> %3, <i16 4095, i16 1>
  %5 = zext nneg <2 x i16> %4 to <2 x i64>
  store <2 x i64> %5, ptr %arrayinit.element1.i, align 8
  call void @use()
  unreachable
}
declare void @use()