File: 2018-02-13-PR36079.ll

package info (click to toggle)
llvm-toolchain-19 1%3A19.1.7-3~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-proposed-updates
  • size: 1,998,492 kB
  • sloc: cpp: 6,951,680; ansic: 1,486,157; asm: 913,598; python: 232,024; f90: 80,126; objc: 75,281; lisp: 37,276; pascal: 16,990; sh: 10,009; ml: 5,058; perl: 4,724; awk: 3,523; makefile: 3,167; javascript: 2,504; xml: 892; fortran: 664; cs: 573
file content (32 lines) | stat: -rw-r--r-- 1,320 bytes parent folder | download | duplicates (8)
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
; RUN: llc -mtriple=arm-eabi -mattr=+neon < %s -o - | FileCheck %s

@c = global [4 x i32] [i32 3, i32 3, i32 3, i32 3], align 4
@d = common global i32 0, align 4

define void @foo() local_unnamed_addr nounwind norecurse {
entry:
  %0 = load <4 x i32>, ptr @c, align 4
  %constexpr = getelementptr inbounds [4 x i32], ptr @c, i32 0, i32 1
  %constexpr1 = icmp ne ptr %constexpr, @d
  %constexpr2 = zext i1 %constexpr1 to i32
  %constexpr3 = getelementptr inbounds [4 x i32], ptr @c, i32 0, i32 2
  %constexpr4 = icmp ne ptr %constexpr3, @d
  %constexpr5 = zext i1 %constexpr4 to i32
  %constexpr6 = getelementptr inbounds [4 x i32], ptr @c, i32 0, i32 3
  %constexpr7 = icmp ne ptr %constexpr6, @d
  %constexpr8 = zext i1 %constexpr7 to i32
  %constexpr.ins = insertelement <4 x i32> poison, i32 1, i32 0
  %constexpr.ins9 = insertelement <4 x i32> %constexpr.ins, i32 %constexpr2, i32 1
  %constexpr.ins10 = insertelement <4 x i32> %constexpr.ins9, i32 %constexpr5, i32 2
  %constexpr.ins11 = insertelement <4 x i32> %constexpr.ins10, i32 %constexpr8, i32 3
  %1 = and <4 x i32> %0, %constexpr.ins11
  store <4 x i32> %1, ptr @c, align 4
  ret void
; CHECK-NOT: mvnne
; CHECK: movne r{{[0-9]+}}, #1
; CHECK-NOT: mvnne
; CHECK: movne r{{[0-9]+}}, #1
; CHECK-NOT: mvnne
; CHECK: movne r{{[0-9]+}}, #1
; CHECK-NOT: mvnne
}