Mercurial > hg > Members > tobaru > cbc > CbC_llvm
annotate test/Assembler/getelementptr_vec_idx3.ll @ 100:7d135dc70f03
LLVM 3.9
author | Miyagi Mitsuki <e135756@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 26 Jan 2016 22:53:40 +0900 |
parents | afa8332a0e37 |
children |
rev | line source |
---|---|
0 | 1 ; RUN: not llvm-as < %s >/dev/null 2> %t |
2 ; RUN: FileCheck %s < %t | |
95 | 3 ; Test that a vector GEP may be used with a scalar base, the result is a vector of pointers |
0 | 4 |
95 | 5 ; CHECK: '%w' defined with type '<2 x <4 x i32>*>' |
0 | 6 |
7 define <4 x i32> @test(<4 x i32>* %a) { | |
95 | 8 %w = getelementptr <4 x i32>, <4 x i32>* %a, <2 x i32> <i32 5, i32 9> |
0 | 9 ret i32 %w |
10 } |