File: aarch64-tryBitfieldInsertOpFromOr-crash.ll

package info (click to toggle)
swiftlang 6.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,519,992 kB
  • sloc: cpp: 9,107,863; ansic: 2,040,022; asm: 1,135,751; python: 296,500; objc: 82,456; f90: 60,502; lisp: 34,951; pascal: 19,946; sh: 18,133; perl: 7,482; ml: 4,937; javascript: 4,117; makefile: 3,840; awk: 3,535; xml: 914; fortran: 619; cs: 573; ruby: 573
file content (36 lines) | stat: -rw-r--r-- 1,311 bytes parent folder | download | duplicates (14)
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
; RUN: llc <%s
target datalayout = "e-m:e-i64:64-i128:128-n32:64-S128"
target triple = "aarch64--linux-gnu"

; Function Attrs: noreturn nounwind
define void @foo(ptr %d) {
entry:
  %0 = ptrtoint ptr %d to i64
  %1 = and i64 %0, -36028797018963969
  %2 = inttoptr i64 %1 to ptr
  %arrayidx5 = getelementptr inbounds i32, ptr %2, i64 1
  %arrayidx6 = getelementptr inbounds i32, ptr %2, i64 2
  %arrayidx7 = getelementptr inbounds i32, ptr %2, i64 3
  br label %for.cond

for.cond:                                         ; preds = %for.cond, %entry
  %B.0 = phi ptr [ %d, %entry ], [ %12, %for.cond ]
  %3 = ptrtoint ptr %B.0 to i64
  %4 = and i64 %3, -36028797018963969
  %5 = inttoptr i64 %4 to ptr
  %6 = load i32, ptr %5, align 4
  %arrayidx1 = getelementptr inbounds i32, ptr %5, i64 1
  %7 = load i32, ptr %arrayidx1, align 4
  %arrayidx2 = getelementptr inbounds i32, ptr %5, i64 2
  %8 = load i32, ptr %arrayidx2, align 4
  %arrayidx3 = getelementptr inbounds i32, ptr %5, i64 3
  %9 = load i32, ptr %arrayidx3, align 4
  store i32 %6, ptr %2, align 4
  store i32 %7, ptr %arrayidx5, align 4
  store i32 %8, ptr %arrayidx6, align 4
  store i32 %9, ptr %arrayidx7, align 4
  %10 = ptrtoint ptr %arrayidx1 to i64
  %11 = or i64 %10, 36028797018963968
  %12 = inttoptr i64 %11 to ptr
  br label %for.cond
}