Michael Kuperstein | 661e288 | 2014-03-02 15:26:36 +0000 | [diff] [blame] | 1 | ; RUN: llvm-dis < %s.bc| FileCheck %s
|
| 2 |
|
| 3 | ; memOperations.3.2.ll.bc was generated by passing this file to llvm-as-3.2.
|
| 4 | ; The test checks that LLVM does not misread memory related instructions of
|
| 5 | ; older bitcode files.
|
| 6 |
|
| 7 | define void @alloca(){
|
| 8 | entry:
|
| 9 | ; CHECK: %res1 = alloca i8
|
| 10 | %res1 = alloca i8
|
| 11 |
|
| 12 | ; CHECK-NEXT: %res2 = alloca i8, i32 2
|
| 13 | %res2 = alloca i8, i32 2
|
| 14 |
|
| 15 | ; CHECK-NEXT: %res3 = alloca i8, i32 2, align 4
|
| 16 | %res3 = alloca i8, i32 2, align 4
|
| 17 |
|
| 18 | ; CHECK-NEXT: %res4 = alloca i8, align 4
|
| 19 | %res4 = alloca i8, align 4
|
| 20 |
|
| 21 | ret void
|
| 22 | }
|
| 23 |
|
| 24 | define void @load(){
|
| 25 | entry:
|
| 26 | %ptr1 = alloca i8
|
| 27 | store i8 2, i8* %ptr1
|
| 28 |
|
| 29 | ; CHECK: %res1 = load i8* %ptr1
|
| 30 | %res1 = load i8* %ptr1
|
| 31 |
|
| 32 | ; CHECK-NEXT: %res2 = load volatile i8* %ptr1
|
| 33 | %res2 = load volatile i8* %ptr1
|
| 34 |
|
| 35 | ; CHECK-NEXT: %res3 = load i8* %ptr1, align 1
|
| 36 | %res3 = load i8* %ptr1, align 1
|
| 37 |
|
| 38 | ; CHECK-NEXT: %res4 = load volatile i8* %ptr1, align 1
|
| 39 | %res4 = load volatile i8* %ptr1, align 1
|
| 40 |
|
| 41 | ; CHECK-NEXT: %res5 = load i8* %ptr1, !nontemporal !0
|
| 42 | %res5 = load i8* %ptr1, !nontemporal !0
|
| 43 |
|
| 44 | ; CHECK-NEXT: %res6 = load volatile i8* %ptr1, !nontemporal !0
|
| 45 | %res6 = load volatile i8* %ptr1, !nontemporal !0
|
| 46 |
|
| 47 | ; CHECK-NEXT: %res7 = load i8* %ptr1, align 1, !nontemporal !0
|
| 48 | %res7 = load i8* %ptr1, align 1, !nontemporal !0
|
| 49 |
|
| 50 | ; CHECK-NEXT: %res8 = load volatile i8* %ptr1, align 1, !nontemporal !0
|
| 51 | %res8 = load volatile i8* %ptr1, align 1, !nontemporal !0
|
| 52 |
|
| 53 | ; CHECK-NEXT: %res9 = load i8* %ptr1, !invariant.load !1
|
| 54 | %res9 = load i8* %ptr1, !invariant.load !1
|
| 55 |
|
| 56 | ; CHECK-NEXT: %res10 = load volatile i8* %ptr1, !invariant.load !1
|
| 57 | %res10 = load volatile i8* %ptr1, !invariant.load !1
|
| 58 |
|
| 59 | ; CHECK-NEXT: %res11 = load i8* %ptr1, align 1, !invariant.load !1
|
| 60 | %res11 = load i8* %ptr1, align 1, !invariant.load !1
|
| 61 |
|
| 62 | ; CHECK-NEXT: %res12 = load volatile i8* %ptr1, align 1, !invariant.load !1
|
| 63 | %res12 = load volatile i8* %ptr1, align 1, !invariant.load !1
|
| 64 |
|
| 65 | ; CHECK-NEXT: %res13 = load i8* %ptr1, {{[(!nontemporal !0, !invariant.load !1) | (!invariant.load !1, !nontemporal !0)]}}
|
| 66 | %res13 = load i8* %ptr1, !nontemporal !0, !invariant.load !1
|
| 67 |
|
| 68 | ; CHECK-NEXT: %res14 = load volatile i8* %ptr1, {{[(!nontemporal !0, !invariant.load !1) | (!invariant.load !1, !nontemporal !0)]}}
|
| 69 | %res14 = load volatile i8* %ptr1, !nontemporal !0, !invariant.load !1
|
| 70 |
|
| 71 | ; CHECK-NEXT: %res15 = load i8* %ptr1, align 1, {{[(!nontemporal !0, !invariant.load !1) | (!invariant.load !1, !nontemporal !0)]}}
|
| 72 | %res15 = load i8* %ptr1, align 1, !nontemporal !0, !invariant.load !1
|
| 73 |
|
| 74 | ; CHECK-NEXT: %res16 = load volatile i8* %ptr1, align 1, {{[(!nontemporal !0, !invariant.load !1) | (!invariant.load !1, !nontemporal !0)]}}
|
| 75 | %res16 = load volatile i8* %ptr1, align 1, !nontemporal !0, !invariant.load !1
|
| 76 |
|
| 77 | ret void
|
| 78 | }
|
| 79 |
|
| 80 | define void @loadAtomic(){
|
| 81 | entry:
|
| 82 | %ptr1 = alloca i8
|
| 83 | store i8 2, i8* %ptr1
|
| 84 |
|
| 85 | ; CHECK: %res1 = load atomic i8* %ptr1 unordered, align 1
|
| 86 | %res1 = load atomic i8* %ptr1 unordered, align 1
|
| 87 |
|
| 88 | ; CHECK-NEXT: %res2 = load atomic i8* %ptr1 monotonic, align 1
|
| 89 | %res2 = load atomic i8* %ptr1 monotonic, align 1
|
| 90 |
|
| 91 | ; CHECK-NEXT: %res3 = load atomic i8* %ptr1 acquire, align 1
|
| 92 | %res3 = load atomic i8* %ptr1 acquire, align 1
|
| 93 |
|
| 94 | ; CHECK-NEXT: %res4 = load atomic i8* %ptr1 seq_cst, align 1
|
| 95 | %res4 = load atomic i8* %ptr1 seq_cst, align 1
|
| 96 |
|
| 97 | ; CHECK-NEXT: %res5 = load atomic volatile i8* %ptr1 unordered, align 1
|
| 98 | %res5 = load atomic volatile i8* %ptr1 unordered, align 1
|
| 99 |
|
| 100 | ; CHECK-NEXT: %res6 = load atomic volatile i8* %ptr1 monotonic, align 1
|
| 101 | %res6 = load atomic volatile i8* %ptr1 monotonic, align 1
|
| 102 |
|
| 103 | ; CHECK-NEXT: %res7 = load atomic volatile i8* %ptr1 acquire, align 1
|
| 104 | %res7 = load atomic volatile i8* %ptr1 acquire, align 1
|
| 105 |
|
| 106 | ; CHECK-NEXT: %res8 = load atomic volatile i8* %ptr1 seq_cst, align 1
|
| 107 | %res8 = load atomic volatile i8* %ptr1 seq_cst, align 1
|
| 108 |
|
| 109 | ; CHECK-NEXT: %res9 = load atomic i8* %ptr1 singlethread unordered, align 1
|
| 110 | %res9 = load atomic i8* %ptr1 singlethread unordered, align 1
|
| 111 |
|
| 112 | ; CHECK-NEXT: %res10 = load atomic i8* %ptr1 singlethread monotonic, align 1
|
| 113 | %res10 = load atomic i8* %ptr1 singlethread monotonic, align 1
|
| 114 |
|
| 115 | ; CHECK-NEXT: %res11 = load atomic i8* %ptr1 singlethread acquire, align 1
|
| 116 | %res11 = load atomic i8* %ptr1 singlethread acquire, align 1
|
| 117 |
|
| 118 | ; CHECK-NEXT: %res12 = load atomic i8* %ptr1 singlethread seq_cst, align 1
|
| 119 | %res12 = load atomic i8* %ptr1 singlethread seq_cst, align 1
|
| 120 |
|
| 121 | ; CHECK-NEXT: %res13 = load atomic volatile i8* %ptr1 singlethread unordered, align 1
|
| 122 | %res13 = load atomic volatile i8* %ptr1 singlethread unordered, align 1
|
| 123 |
|
| 124 | ; CHECK-NEXT: %res14 = load atomic volatile i8* %ptr1 singlethread monotonic, align 1
|
| 125 | %res14 = load atomic volatile i8* %ptr1 singlethread monotonic, align 1
|
| 126 |
|
| 127 | ; CHECK-NEXT: %res15 = load atomic volatile i8* %ptr1 singlethread acquire, align 1
|
| 128 | %res15 = load atomic volatile i8* %ptr1 singlethread acquire, align 1
|
| 129 |
|
| 130 | ; CHECK-NEXT: %res16 = load atomic volatile i8* %ptr1 singlethread seq_cst, align 1
|
| 131 | %res16 = load atomic volatile i8* %ptr1 singlethread seq_cst, align 1
|
| 132 |
|
| 133 | ret void
|
| 134 | }
|
| 135 |
|
| 136 | define void @store(){
|
| 137 | entry:
|
| 138 | %ptr1 = alloca i8
|
| 139 |
|
| 140 | ; CHECK: store i8 2, i8* %ptr1
|
| 141 | store i8 2, i8* %ptr1
|
| 142 |
|
| 143 | ; CHECK-NEXT: store volatile i8 2, i8* %ptr1
|
| 144 | store volatile i8 2, i8* %ptr1
|
| 145 |
|
| 146 | ; CHECK-NEXT: store i8 2, i8* %ptr1, align 1
|
| 147 | store i8 2, i8* %ptr1, align 1
|
| 148 |
|
| 149 | ; CHECK-NEXT: store volatile i8 2, i8* %ptr1, align 1
|
| 150 | store volatile i8 2, i8* %ptr1, align 1
|
| 151 |
|
| 152 | ; CHECK-NEXT: store i8 2, i8* %ptr1, !nontemporal !0
|
| 153 | store i8 2, i8* %ptr1, !nontemporal !0
|
| 154 |
|
| 155 | ; CHECK-NEXT: store volatile i8 2, i8* %ptr1, !nontemporal !0
|
| 156 | store volatile i8 2, i8* %ptr1, !nontemporal !0
|
| 157 |
|
| 158 | ; CHECK-NEXT: store i8 2, i8* %ptr1, align 1, !nontemporal !0
|
| 159 | store i8 2, i8* %ptr1, align 1, !nontemporal !0
|
| 160 |
|
| 161 | ; CHECK-NEXT: store volatile i8 2, i8* %ptr1, align 1, !nontemporal !0
|
| 162 | store volatile i8 2, i8* %ptr1, align 1, !nontemporal !0
|
| 163 |
|
| 164 | ret void
|
| 165 | }
|
| 166 |
|
| 167 | define void @storeAtomic(){
|
| 168 | entry:
|
| 169 | %ptr1 = alloca i8
|
| 170 |
|
| 171 | ; CHECK: store atomic i8 2, i8* %ptr1 unordered, align 1
|
| 172 | store atomic i8 2, i8* %ptr1 unordered, align 1
|
| 173 |
|
| 174 | ; CHECK-NEXT: store atomic i8 2, i8* %ptr1 monotonic, align 1
|
| 175 | store atomic i8 2, i8* %ptr1 monotonic, align 1
|
| 176 |
|
| 177 | ; CHECK-NEXT: store atomic i8 2, i8* %ptr1 release, align 1
|
| 178 | store atomic i8 2, i8* %ptr1 release, align 1
|
| 179 |
|
| 180 | ; CHECK-NEXT: store atomic i8 2, i8* %ptr1 seq_cst, align 1
|
| 181 | store atomic i8 2, i8* %ptr1 seq_cst, align 1
|
| 182 |
|
| 183 | ; CHECK-NEXT: store atomic volatile i8 2, i8* %ptr1 unordered, align 1
|
| 184 | store atomic volatile i8 2, i8* %ptr1 unordered, align 1
|
| 185 |
|
| 186 | ; CHECK-NEXT: store atomic volatile i8 2, i8* %ptr1 monotonic, align 1
|
| 187 | store atomic volatile i8 2, i8* %ptr1 monotonic, align 1
|
| 188 |
|
| 189 | ; CHECK-NEXT: store atomic volatile i8 2, i8* %ptr1 release, align 1
|
| 190 | store atomic volatile i8 2, i8* %ptr1 release, align 1
|
| 191 |
|
| 192 | ; CHECK-NEXT: store atomic volatile i8 2, i8* %ptr1 seq_cst, align 1
|
| 193 | store atomic volatile i8 2, i8* %ptr1 seq_cst, align 1
|
| 194 |
|
| 195 | ; CHECK-NEXT: store atomic i8 2, i8* %ptr1 singlethread unordered, align 1
|
| 196 | store atomic i8 2, i8* %ptr1 singlethread unordered, align 1
|
| 197 |
|
| 198 | ; CHECK-NEXT: store atomic i8 2, i8* %ptr1 singlethread monotonic, align 1
|
| 199 | store atomic i8 2, i8* %ptr1 singlethread monotonic, align 1
|
| 200 |
|
| 201 | ; CHECK-NEXT: store atomic i8 2, i8* %ptr1 singlethread release, align 1
|
| 202 | store atomic i8 2, i8* %ptr1 singlethread release, align 1
|
| 203 |
|
| 204 | ; CHECK-NEXT: store atomic i8 2, i8* %ptr1 singlethread seq_cst, align 1
|
| 205 | store atomic i8 2, i8* %ptr1 singlethread seq_cst, align 1
|
| 206 |
|
| 207 | ; CHECK-NEXT: store atomic volatile i8 2, i8* %ptr1 singlethread unordered, align 1
|
| 208 | store atomic volatile i8 2, i8* %ptr1 singlethread unordered, align 1
|
| 209 |
|
| 210 | ; CHECK-NEXT: store atomic volatile i8 2, i8* %ptr1 singlethread monotonic, align 1
|
| 211 | store atomic volatile i8 2, i8* %ptr1 singlethread monotonic, align 1
|
| 212 |
|
| 213 | ; CHECK-NEXT: store atomic volatile i8 2, i8* %ptr1 singlethread release, align 1
|
| 214 | store atomic volatile i8 2, i8* %ptr1 singlethread release, align 1
|
| 215 |
|
| 216 | ; CHECK-NEXT: store atomic volatile i8 2, i8* %ptr1 singlethread seq_cst, align 1
|
| 217 | store atomic volatile i8 2, i8* %ptr1 singlethread seq_cst, align 1
|
| 218 |
|
| 219 | ret void
|
| 220 | }
|
| 221 |
|
| 222 | define void @cmpxchg(i32* %ptr,i32 %cmp,i32 %new){
|
| 223 | entry:
|
| 224 | ;cmpxchg [volatile] <ty>* <pointer>, <ty> <cmp>, <ty> <new> [singlethread] <ordering>
|
| 225 |
|
Tim Northover | e94a518 | 2014-03-11 10:48:52 +0000 | [diff] [blame] | 226 | ; CHECK: %res1 = cmpxchg i32* %ptr, i32 %cmp, i32 %new monotonic monotonic
|
| 227 | %res1 = cmpxchg i32* %ptr, i32 %cmp, i32 %new monotonic monotonic
|
Michael Kuperstein | 661e288 | 2014-03-02 15:26:36 +0000 | [diff] [blame] | 228 |
|
Tim Northover | e94a518 | 2014-03-11 10:48:52 +0000 | [diff] [blame] | 229 | ; CHECK-NEXT: %res2 = cmpxchg volatile i32* %ptr, i32 %cmp, i32 %new monotonic monotonic
|
| 230 | %res2 = cmpxchg volatile i32* %ptr, i32 %cmp, i32 %new monotonic monotonic
|
Michael Kuperstein | 661e288 | 2014-03-02 15:26:36 +0000 | [diff] [blame] | 231 |
|
Tim Northover | e94a518 | 2014-03-11 10:48:52 +0000 | [diff] [blame] | 232 | ; CHECK-NEXT: %res3 = cmpxchg i32* %ptr, i32 %cmp, i32 %new singlethread monotonic monotonic
|
| 233 | %res3 = cmpxchg i32* %ptr, i32 %cmp, i32 %new singlethread monotonic monotonic
|
Michael Kuperstein | 661e288 | 2014-03-02 15:26:36 +0000 | [diff] [blame] | 234 |
|
Tim Northover | e94a518 | 2014-03-11 10:48:52 +0000 | [diff] [blame] | 235 | ; CHECK-NEXT: %res4 = cmpxchg volatile i32* %ptr, i32 %cmp, i32 %new singlethread monotonic monotonic
|
| 236 | %res4 = cmpxchg volatile i32* %ptr, i32 %cmp, i32 %new singlethread monotonic monotonic
|
Michael Kuperstein | 661e288 | 2014-03-02 15:26:36 +0000 | [diff] [blame] | 237 |
|
| 238 |
|
Tim Northover | e94a518 | 2014-03-11 10:48:52 +0000 | [diff] [blame] | 239 | ; CHECK-NEXT: %res5 = cmpxchg i32* %ptr, i32 %cmp, i32 %new acquire acquire
|
| 240 | %res5 = cmpxchg i32* %ptr, i32 %cmp, i32 %new acquire acquire
|
Michael Kuperstein | 661e288 | 2014-03-02 15:26:36 +0000 | [diff] [blame] | 241 |
|
Tim Northover | e94a518 | 2014-03-11 10:48:52 +0000 | [diff] [blame] | 242 | ; CHECK-NEXT: %res6 = cmpxchg volatile i32* %ptr, i32 %cmp, i32 %new acquire acquire
|
| 243 | %res6 = cmpxchg volatile i32* %ptr, i32 %cmp, i32 %new acquire acquire
|
Michael Kuperstein | 661e288 | 2014-03-02 15:26:36 +0000 | [diff] [blame] | 244 |
|
Tim Northover | e94a518 | 2014-03-11 10:48:52 +0000 | [diff] [blame] | 245 | ; CHECK-NEXT: %res7 = cmpxchg i32* %ptr, i32 %cmp, i32 %new singlethread acquire acquire
|
| 246 | %res7 = cmpxchg i32* %ptr, i32 %cmp, i32 %new singlethread acquire acquire
|
Michael Kuperstein | 661e288 | 2014-03-02 15:26:36 +0000 | [diff] [blame] | 247 |
|
Tim Northover | e94a518 | 2014-03-11 10:48:52 +0000 | [diff] [blame] | 248 | ; CHECK-NEXT: %res8 = cmpxchg volatile i32* %ptr, i32 %cmp, i32 %new singlethread acquire acquire
|
| 249 | %res8 = cmpxchg volatile i32* %ptr, i32 %cmp, i32 %new singlethread acquire acquire
|
Michael Kuperstein | 661e288 | 2014-03-02 15:26:36 +0000 | [diff] [blame] | 250 |
|
| 251 |
|
Tim Northover | e94a518 | 2014-03-11 10:48:52 +0000 | [diff] [blame] | 252 | ; CHECK-NEXT: %res9 = cmpxchg i32* %ptr, i32 %cmp, i32 %new release monotonic
|
| 253 | %res9 = cmpxchg i32* %ptr, i32 %cmp, i32 %new release monotonic
|
Michael Kuperstein | 661e288 | 2014-03-02 15:26:36 +0000 | [diff] [blame] | 254 |
|
Tim Northover | e94a518 | 2014-03-11 10:48:52 +0000 | [diff] [blame] | 255 | ; CHECK-NEXT: %res10 = cmpxchg volatile i32* %ptr, i32 %cmp, i32 %new release monotonic
|
| 256 | %res10 = cmpxchg volatile i32* %ptr, i32 %cmp, i32 %new release monotonic
|
Michael Kuperstein | 661e288 | 2014-03-02 15:26:36 +0000 | [diff] [blame] | 257 |
|
Tim Northover | e94a518 | 2014-03-11 10:48:52 +0000 | [diff] [blame] | 258 | ; CHECK-NEXT: %res11 = cmpxchg i32* %ptr, i32 %cmp, i32 %new singlethread release monotonic
|
| 259 | %res11 = cmpxchg i32* %ptr, i32 %cmp, i32 %new singlethread release monotonic
|
Michael Kuperstein | 661e288 | 2014-03-02 15:26:36 +0000 | [diff] [blame] | 260 |
|
Tim Northover | e94a518 | 2014-03-11 10:48:52 +0000 | [diff] [blame] | 261 | ; CHECK-NEXT: %res12 = cmpxchg volatile i32* %ptr, i32 %cmp, i32 %new singlethread release monotonic
|
| 262 | %res12 = cmpxchg volatile i32* %ptr, i32 %cmp, i32 %new singlethread release monotonic
|
Michael Kuperstein | 661e288 | 2014-03-02 15:26:36 +0000 | [diff] [blame] | 263 |
|
| 264 |
|
Tim Northover | e94a518 | 2014-03-11 10:48:52 +0000 | [diff] [blame] | 265 | ; CHECK-NEXT: %res13 = cmpxchg i32* %ptr, i32 %cmp, i32 %new acq_rel acquire
|
| 266 | %res13 = cmpxchg i32* %ptr, i32 %cmp, i32 %new acq_rel acquire
|
Michael Kuperstein | 661e288 | 2014-03-02 15:26:36 +0000 | [diff] [blame] | 267 |
|
Tim Northover | e94a518 | 2014-03-11 10:48:52 +0000 | [diff] [blame] | 268 | ; CHECK-NEXT: %res14 = cmpxchg volatile i32* %ptr, i32 %cmp, i32 %new acq_rel acquire
|
| 269 | %res14 = cmpxchg volatile i32* %ptr, i32 %cmp, i32 %new acq_rel acquire
|
Michael Kuperstein | 661e288 | 2014-03-02 15:26:36 +0000 | [diff] [blame] | 270 |
|
Tim Northover | e94a518 | 2014-03-11 10:48:52 +0000 | [diff] [blame] | 271 | ; CHECK-NEXT: %res15 = cmpxchg i32* %ptr, i32 %cmp, i32 %new singlethread acq_rel acquire
|
| 272 | %res15 = cmpxchg i32* %ptr, i32 %cmp, i32 %new singlethread acq_rel acquire
|
Michael Kuperstein | 661e288 | 2014-03-02 15:26:36 +0000 | [diff] [blame] | 273 |
|
Tim Northover | e94a518 | 2014-03-11 10:48:52 +0000 | [diff] [blame] | 274 | ; CHECK-NEXT: %res16 = cmpxchg volatile i32* %ptr, i32 %cmp, i32 %new singlethread acq_rel acquire
|
| 275 | %res16 = cmpxchg volatile i32* %ptr, i32 %cmp, i32 %new singlethread acq_rel acquire
|
Michael Kuperstein | 661e288 | 2014-03-02 15:26:36 +0000 | [diff] [blame] | 276 |
|
| 277 |
|
Tim Northover | e94a518 | 2014-03-11 10:48:52 +0000 | [diff] [blame] | 278 | ; CHECK-NEXT: %res17 = cmpxchg i32* %ptr, i32 %cmp, i32 %new seq_cst seq_cst
|
| 279 | %res17 = cmpxchg i32* %ptr, i32 %cmp, i32 %new seq_cst seq_cst
|
Michael Kuperstein | 661e288 | 2014-03-02 15:26:36 +0000 | [diff] [blame] | 280 |
|
Tim Northover | e94a518 | 2014-03-11 10:48:52 +0000 | [diff] [blame] | 281 | ; CHECK-NEXT: %res18 = cmpxchg volatile i32* %ptr, i32 %cmp, i32 %new seq_cst seq_cst
|
| 282 | %res18 = cmpxchg volatile i32* %ptr, i32 %cmp, i32 %new seq_cst seq_cst
|
Michael Kuperstein | 661e288 | 2014-03-02 15:26:36 +0000 | [diff] [blame] | 283 |
|
Tim Northover | e94a518 | 2014-03-11 10:48:52 +0000 | [diff] [blame] | 284 | ; CHECK-NEXT: %res19 = cmpxchg i32* %ptr, i32 %cmp, i32 %new singlethread seq_cst seq_cst
|
| 285 | %res19 = cmpxchg i32* %ptr, i32 %cmp, i32 %new singlethread seq_cst seq_cst
|
Michael Kuperstein | 661e288 | 2014-03-02 15:26:36 +0000 | [diff] [blame] | 286 |
|
Tim Northover | e94a518 | 2014-03-11 10:48:52 +0000 | [diff] [blame] | 287 | ; CHECK-NEXT: %res20 = cmpxchg volatile i32* %ptr, i32 %cmp, i32 %new singlethread seq_cst seq_cst
|
| 288 | %res20 = cmpxchg volatile i32* %ptr, i32 %cmp, i32 %new singlethread seq_cst seq_cst
|
Michael Kuperstein | 661e288 | 2014-03-02 15:26:36 +0000 | [diff] [blame] | 289 |
|
| 290 | ret void
|
| 291 | }
|
| 292 |
|
| 293 | define void @getelementptr({i8, i8}* %s, <4 x i8*> %ptrs, <4 x i64> %offsets ){
|
| 294 | entry:
|
| 295 | ; CHECK: %res1 = getelementptr { i8, i8 }* %s, i32 1, i32 1
|
| 296 | %res1 = getelementptr {i8, i8}* %s, i32 1, i32 1
|
| 297 |
|
| 298 | ; CHECK-NEXT: %res2 = getelementptr inbounds { i8, i8 }* %s, i32 1, i32 1
|
| 299 | %res2 = getelementptr inbounds {i8, i8}* %s, i32 1, i32 1
|
| 300 |
|
| 301 | ; CHECK-NEXT: %res3 = getelementptr <4 x i8*> %ptrs, <4 x i64> %offsets
|
| 302 | %res3 = getelementptr <4 x i8*> %ptrs, <4 x i64> %offsets
|
| 303 |
|
| 304 | ret void
|
| 305 | }
|
| 306 |
|
| 307 | !0 = metadata !{ i32 1 }
|
| 308 | !1 = metadata !{} |