File: expand-condsets-undefvni.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 (49 lines) | stat: -rw-r--r-- 1,459 bytes parent folder | download | duplicates (23)
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
; RUN: llc -march=hexagon < %s | FileCheck %s
;
; Check that this compiles successfully.
; CHECK: jumpr r31

target triple = "hexagon"

define i64 @fred(i64 %a0, i64 %a1) local_unnamed_addr #0 {
b2:
  %v3 = lshr i64 %a1, 52
  %v4 = trunc i64 %v3 to i11
  switch i11 %v4, label %b15 [
    i11 -1, label %b5
    i11 0, label %b14
  ]

b5:                                               ; preds = %b2
  br i1 undef, label %b13, label %b6

b6:                                               ; preds = %b5
  %v7 = or i64 %a1, 2251799813685248
  br i1 undef, label %b8, label %b10

b8:                                               ; preds = %b6
  %v9 = select i1 undef, i64 %v7, i64 undef
  br label %b16

b10:                                              ; preds = %b6
  br i1 undef, label %b16, label %b11

b11:                                              ; preds = %b10
  %v12 = select i1 undef, i64 undef, i64 %v7
  br label %b16

b13:                                              ; preds = %b5
  br label %b16

b14:                                              ; preds = %b2
  br label %b16

b15:                                              ; preds = %b2
  br label %b16

b16:                                              ; preds = %b15, %b14, %b13, %b11, %b10, %b8
  %v17 = phi i64 [ undef, %b13 ], [ -2251799813685248, %b14 ], [ 0, %b15 ], [ %v12, %b11 ], [ %v9, %b8 ], [ %v7, %b10 ]
  ret i64 %v17
}

attributes #0 = { nounwind "target-cpu"="hexagonv62" }