reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    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
   62
   63
   64
   65
   66
   67
   68
   69
   70
   71
   72
   73
   74
   75
   76
   77
   78
   79
   80
   81
   82
   83
   84
   85
   86
   87
   88
   89
   90
   91
   92
   93
   94
   95
   96
   97
   98
   99
  100
  101
  102
  103
  104
  105
  106
  107
  108
  109
  110
  111
  112
  113
  114
  115
  116
  117
  118
  119
  120
  121
  122
  123
  124
  125
  126
  127
  128
  129
  130
  131
  132
  133
  134
  135
  136
  137
  138
  139
  140
  141
  142
  143
  144
  145
  146
  147
  148
  149
  150
  151
  152
  153
  154
  155
  156
  157
  158
  159
  160
  161
  162
  163
  164
  165
  166
  167
  168
  169
  170
  171
  172
  173
  174
  175
  176
  177
  178
; RUN: llvm-dis < %s.bc| FileCheck %s
; RUN: verify-uselistorder < %s.bc

; BinaryIntOperation.3.2.ll.bc was generated by passing this file to llvm-as-3.2.
; The test checks that LLVM does not misread binary integer instructions from
; older bitcode files.

define void @add(i1 %x1, i8 %x2 ,i16 %x3, i32 %x4, i64 %x5){
entry:
; CHECK: %res1 = add i1 %x1, %x1
  %res1 = add i1 %x1, %x1

; CHECK-NEXT: %res2 = add i8 %x2, %x2
  %res2 = add i8 %x2, %x2

; CHECK-NEXT: %res3 = add i16 %x3, %x3
  %res3 = add i16 %x3, %x3

; CHECK-NEXT: %res4 = add i32 %x4, %x4
  %res4 = add i32 %x4, %x4

; CHECK-NEXT: %res5 = add i64 %x5, %x5
  %res5 = add i64 %x5, %x5

; CHECK: %res6 = add nuw i1 %x1, %x1
  %res6 = add nuw i1 %x1, %x1

; CHECK: %res7 = add nsw i1 %x1, %x1
  %res7 = add nsw i1 %x1, %x1

; CHECK: %res8 = add nuw nsw i1 %x1, %x1
  %res8 = add nuw nsw i1 %x1, %x1

  ret void
}

define void @addvec8NuwNsw(<2 x i8> %x1, <3 x i8> %x2 ,<4 x i8> %x3, <8 x i8> %x4, <16 x i8> %x5){
entry:
; CHECK: %res1 = add nuw nsw <2 x i8> %x1, %x1
  %res1 = add nuw nsw <2 x i8> %x1, %x1

; CHECK-NEXT: %res2 = add nuw nsw <3 x i8> %x2, %x2
  %res2 = add nuw nsw <3 x i8> %x2, %x2

; CHECK-NEXT: %res3 = add nuw nsw <4 x i8> %x3, %x3
  %res3 = add nuw nsw <4 x i8> %x3, %x3

; CHECK-NEXT: %res4 = add nuw nsw <8 x i8> %x4, %x4
  %res4 = add nuw nsw <8 x i8> %x4, %x4

; CHECK-NEXT: %res5 = add nuw nsw <16 x i8> %x5, %x5
  %res5 = add nuw nsw <16 x i8> %x5, %x5

  ret void
}

define void @addvec16NuwNsw(<2 x i16> %x1, <3 x i16> %x2 ,<4 x i16> %x3, <8 x i16> %x4, <16 x i16> %x5){
entry:
; CHECK: %res1 = add nuw nsw <2 x i16> %x1, %x1
  %res1 = add nuw nsw <2 x i16> %x1, %x1

; CHECK-NEXT: %res2 = add nuw nsw <3 x i16> %x2, %x2
  %res2 = add nuw nsw <3 x i16> %x2, %x2

; CHECK-NEXT: %res3 = add nuw nsw <4 x i16> %x3, %x3
  %res3 = add nuw nsw <4 x i16> %x3, %x3

; CHECK-NEXT: %res4 = add nuw nsw <8 x i16> %x4, %x4
  %res4 = add nuw nsw <8 x i16> %x4, %x4

; CHECK-NEXT: %res5 = add nuw nsw <16 x i16> %x5, %x5
  %res5 = add nuw nsw <16 x i16> %x5, %x5

  ret void
}

define void @addvec32NuwNsw(<2 x i32> %x1, <3 x i32> %x2 ,<4 x i32> %x3, <8 x i32> %x4, <16 x i32> %x5){
entry:
; CHECK: %res1 = add nuw nsw <2 x i32> %x1, %x1
  %res1 = add nuw nsw <2 x i32> %x1, %x1

; CHECK-NEXT: %res2 = add nuw nsw <3 x i32> %x2, %x2
  %res2 = add nuw nsw <3 x i32> %x2, %x2

; CHECK-NEXT: %res3 = add nuw nsw <4 x i32> %x3, %x3
  %res3 = add nuw nsw <4 x i32> %x3, %x3

; CHECK-NEXT: %res4 = add nuw nsw <8 x i32> %x4, %x4
  %res4 = add nuw nsw <8 x i32> %x4, %x4

; CHECK-NEXT: %res5 = add nuw nsw <16 x i32> %x5, %x5
  %res5 = add nuw nsw <16 x i32> %x5, %x5

  ret void
}

define void @addvec64NuwNsw(<2 x i64> %x1, <3 x i64> %x2 ,<4 x i64> %x3, <8 x i64> %x4, <16 x i64> %x5){
entry:
; CHECK: %res1 = add nuw nsw <2 x i64> %x1, %x1
  %res1 = add nuw nsw <2 x i64> %x1, %x1

; CHECK-NEXT: %res2 = add nuw nsw <3 x i64> %x2, %x2
  %res2 = add nuw nsw <3 x i64> %x2, %x2

; CHECK-NEXT: %res3 = add nuw nsw <4 x i64> %x3, %x3
  %res3 = add nuw nsw <4 x i64> %x3, %x3

; CHECK-NEXT: %res4 = add nuw nsw <8 x i64> %x4, %x4
  %res4 = add nuw nsw <8 x i64> %x4, %x4

; CHECK-NEXT: %res5 = add nuw nsw <16 x i64> %x5, %x5
  %res5 = add nuw nsw <16 x i64> %x5, %x5

  ret void
}

define void @sub(i8 %x1){
entry:
; CHECK: %res1 = sub i8 %x1, %x1
  %res1 = sub i8 %x1, %x1

; CHECK: %res2 = sub nuw i8 %x1, %x1
  %res2 = sub nuw i8 %x1, %x1

; CHECK: %res3 = sub nsw i8 %x1, %x1
  %res3 = sub nsw i8 %x1, %x1

; CHECK: %res4 = sub nuw nsw i8 %x1, %x1
  %res4 = sub nuw nsw i8 %x1, %x1

  ret void
}

define void @mul(i8 %x1){
entry:
; CHECK: %res1 = mul i8 %x1, %x1
  %res1 = mul i8 %x1, %x1

  ret void
}

define void @udiv(i8 %x1){
entry:
; CHECK: %res1 = udiv i8 %x1, %x1
  %res1 = udiv i8 %x1, %x1

; CHECK-NEXT: %res2 = udiv exact i8 %x1, %x1
  %res2 = udiv exact i8 %x1, %x1

  ret void
}

define void @sdiv(i8 %x1){
entry:
; CHECK: %res1 = sdiv i8 %x1, %x1
  %res1 = sdiv i8 %x1, %x1

; CHECK-NEXT: %res2 = sdiv exact i8 %x1, %x1
  %res2 = sdiv exact i8 %x1, %x1

  ret void
}

define void @urem(i32 %x1){
entry:
; CHECK: %res1 = urem i32 %x1, %x1
  %res1 = urem i32 %x1, %x1

  ret void
}

define void @srem(i32 %x1){
entry:
; CHECK: %res1 = srem i32 %x1, %x1
  %res1 = srem i32 %x1, %x1

  ret void
}