File: flags.ll

package info (click to toggle)
llvm-toolchain-19 1%3A19.1.7-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,998,520 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 (57 lines) | stat: -rw-r--r-- 2,156 bytes parent folder | download | duplicates (3)
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
51
52
53
54
55
56
57
; RUN: llvm-as < %s | llvm-dis > %t0
; RUN: opt -S < %s > %t1
; RUN: diff %t0 %t1
; RUN: verify-uselistorder < %s
; PR6140

; Make sure the flags are serialized/deserialized properly for both
; forward and backward references.

define void @foo() nounwind {
entry:
  br label %first

second:                                           ; preds = %first
  %u = add nuw i32 %a, 0                          ; <i32> [#uses=0]
  %s = add nsw i32 %a, 0                          ; <i32> [#uses=0]
  %us = add nuw nsw i32 %a, 0                     ; <i32> [#uses=0]
  %z = add i32 %a, 0                              ; <i32> [#uses=0]
  %hh = zext nneg i32 %a to i64
  %ll = zext i32 %s to i64
  %ff = uitofp nneg i32 %a to float
  %bb = uitofp i32 %s to float
  %jj = or disjoint i32 %a, 0
  %oo = or i32 %a, 0
  %tu = trunc nuw i32 %a to i16
  %ts = trunc nsw i32 %a to i16
  %tus = trunc nuw nsw i32 %a to i16
  %t = trunc i32 %a to i16
  %tuv = trunc nuw <2 x i32> %aa to <2 x i16>
  %tsv = trunc nsw <2 x i32> %aa to <2 x i16>
  %tusv = trunc nuw nsw <2 x i32> %aa to <2 x i16>
  %tv = trunc <2 x i32> %aa to <2 x i16>
  unreachable

first:                                                    ; preds = %entry
  %aa = bitcast <2 x i32> <i32 0, i32 0> to <2 x i32>
  %a = bitcast i32 0 to i32                               ; <i32> [#uses=8]
  %uu = add nuw i32 %a, 0                                 ; <i32> [#uses=0]
  %ss = add nsw i32 %a, 0                                 ; <i32> [#uses=0]
  %uuss = add nuw nsw i32 %a, 0                           ; <i32> [#uses=0]
  %zz = add i32 %a, 0                                     ; <i32> [#uses=0]
  %kk = zext nneg i32 %a to i64
  %rr = zext i32 %ss to i64
  %ww = uitofp nneg i32 %a to float
  %xx = uitofp i32 %ss to float
  %mm = or disjoint i32 %a, 0
  %nn = or i32 %a, 0
  %tuu = trunc nuw i32 %a to i16
  %tss = trunc nsw i32 %a to i16
  %tuss = trunc nuw nsw i32 %a to i16
  %tt = trunc i32 %a to i16
  %ttuv = trunc nuw <2 x i32> %aa to <2 x i16>
  %ttsv = trunc nsw <2 x i32> %aa to <2 x i16>
  %ttusv = trunc nuw nsw <2 x i32> %aa to <2 x i16>
  %ttv = trunc <2 x i32> %aa to <2 x i16>
  br label %second
}