summaryrefslogtreecommitdiff
path: root/test/Feature/instructions.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-01-10 20:00:20 +0000
committerChris Lattner <sabre@nondot.org>2006-01-10 20:00:20 +0000
commit5e1b72c153dafaaf73e82c2c76f93ed55d74a889 (patch)
tree64882ac2d05d260a73703bb3384c49c9227828be /test/Feature/instructions.ll
parentcd618ef279e5913093661af77065b9108ed05f09 (diff)
downloadllvm-5e1b72c153dafaaf73e82c2c76f93ed55d74a889.tar.gz
llvm-5e1b72c153dafaaf73e82c2c76f93ed55d74a889.tar.bz2
llvm-5e1b72c153dafaaf73e82c2c76f93ed55d74a889.tar.xz
new testcase for extractelement instruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25186 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Feature/instructions.ll')
-rw-r--r--test/Feature/instructions.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Feature/instructions.ll b/test/Feature/instructions.ll
new file mode 100644
index 0000000000..2edb1faba7
--- /dev/null
+++ b/test/Feature/instructions.ll
@@ -0,0 +1,8 @@
+; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
+; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
+; RUN: diff %t1.ll %t2.ll
+
+uint %test_extractelement(<4 x uint> %V) {
+ %R = extractelement <4 x uint> %V, uint 1
+ ret uint %R
+}