File: flags.ll

package info (click to toggle)
llvm-toolchain-20 1%3A20.1.6-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,111,304 kB
  • sloc: cpp: 7,438,677; ansic: 1,393,822; asm: 1,012,926; python: 241,650; f90: 86,635; objc: 75,479; lisp: 42,144; pascal: 17,286; sh: 10,027; ml: 5,082; perl: 4,730; awk: 3,523; makefile: 3,349; javascript: 2,251; xml: 892; fortran: 672
file content (61 lines) | stat: -rw-r--r-- 2,323 bytes parent folder | download | duplicates (6)
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
58
59
60
61
; 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>
  %ii = icmp samesign ult i32 %a, %z
  %iv = icmp samesign ult <2 x i32> %aa, %aa
  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>
  %icm = icmp samesign ult i32 %a, %zz
  %icv = icmp samesign ult <2 x i32> %aa, %aa
  br label %second
}