File: 2018-02-13-PR36079.ll

package info (click to toggle)
llvm-toolchain-21 1%3A21.1.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 2,245,044 kB
  • sloc: cpp: 7,619,726; ansic: 1,434,018; asm: 1,058,748; python: 252,740; f90: 94,671; objc: 70,685; lisp: 42,813; pascal: 18,401; sh: 8,601; ml: 5,111; perl: 4,720; makefile: 3,666; awk: 3,523; javascript: 2,409; xml: 892; fortran: 770
file content (32 lines) | stat: -rw-r--r-- 1,320 bytes parent folder | download | duplicates (12)
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
}