File: sj-ctr-loop.ll

package info (click to toggle)
llvm-toolchain-14 1%3A14.0.6-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,496,180 kB
  • sloc: cpp: 5,593,972; ansic: 986,872; asm: 585,869; python: 184,223; objc: 72,530; lisp: 31,119; f90: 27,793; javascript: 9,780; pascal: 9,762; sh: 9,482; perl: 7,468; ml: 5,432; awk: 3,523; makefile: 2,538; xml: 953; cs: 573; fortran: 567
file content (50 lines) | stat: -rw-r--r-- 1,873 bytes parent folder | download | duplicates (11)
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
41
42
43
44
45
46
47
48
49
50
; RUN: llc -mtriple=powerpc64-unknown-linux-gnu < %s -verify-machineinstrs | FileCheck %s
target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f128:128:128-v128:128:128-n32:64"
target triple = "powerpc64-unknown-linux-gnu"

%struct.__jmp_buf_tag.1.15.17.21.25.49.53.55 = type { [64 x i64], i32, %struct.__sigset_t.0.14.16.20.24.48.52.54, [8 x i8] }
%struct.__sigset_t.0.14.16.20.24.48.52.54 = type { [16 x i64] }

@env_sigill = external global [1 x %struct.__jmp_buf_tag.1.15.17.21.25.49.53.55], align 16

; CHECK-LABEL: @main
; CHECK-NOT: mtctr

; Function Attrs: nounwind
define void @main() #0 {
entry:
  br i1 undef, label %return, label %if.end

if.end:                                           ; preds = %entry
  br i1 undef, label %for.body.lr.ph, label %for.end.thread

for.end.thread:                                   ; preds = %if.end
  br label %return

for.body.lr.ph:                                   ; preds = %if.end
  br label %for.body

for.cond:                                         ; preds = %for.body
  %cmp2 = icmp slt i32 %inc, undef
  br i1 %cmp2, label %for.body, label %for.end

for.body:                                         ; preds = %for.cond, %for.body.lr.ph
  %i.032 = phi i32 [ 0, %for.body.lr.ph ], [ %inc, %for.cond ]
  %0 = call i32 @llvm.eh.sjlj.setjmp(i8* bitcast ([1 x %struct.__jmp_buf_tag.1.15.17.21.25.49.53.55]* @env_sigill to i8*))
  %inc = add nsw i32 %i.032, 1
  br i1 false, label %if.else, label %for.cond

if.else:                                          ; preds = %for.body
  unreachable

for.end:                                          ; preds = %for.cond
  unreachable

return:                                           ; preds = %for.end.thread, %entry
  ret void
}

; Function Attrs: nounwind
declare i32 @llvm.eh.sjlj.setjmp(i8*) #0

attributes #0 = { nounwind }