[llvm-commits] [llvm] r70226 - /llvm/trunk/test/CodeGen/Generic/vector-casts.ll
Nate Begeman
natebegeman at mac.com
Mon Apr 27 11:42:40 PDT 2009
Author: sampo
Date: Mon Apr 27 13:42:40 2009
New Revision: 70226
URL: http://llvm.org/viewvc/llvm-project?rev=70226&view=rev
Log:
Revert accidental testcase reduction
Modified:
llvm/trunk/test/CodeGen/Generic/vector-casts.ll
Modified: llvm/trunk/test/CodeGen/Generic/vector-casts.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Generic/vector-casts.ll?rev=70226&r1=70225&r2=70226&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/Generic/vector-casts.ll (original)
+++ llvm/trunk/test/CodeGen/Generic/vector-casts.ll Mon Apr 27 13:42:40 2009
@@ -1,9 +1,45 @@
; RUN: llvm-as < %s | llc
; PR2671
+define void @a(<2 x double>* %p, <2 x i8>* %q) {
+ %t = load <2 x double>* %p
+ %r = fptosi <2 x double> %t to <2 x i8>
+ store <2 x i8> %r, <2 x i8>* %q
+ ret void
+}
+define void @b(<2 x double>* %p, <2 x i8>* %q) {
+ %t = load <2 x double>* %p
+ %r = fptoui <2 x double> %t to <2 x i8>
+ store <2 x i8> %r, <2 x i8>* %q
+ ret void
+}
+define void @c(<2 x i8>* %p, <2 x double>* %q) {
+ %t = load <2 x i8>* %p
+ %r = sitofp <2 x i8> %t to <2 x double>
+ store <2 x double> %r, <2 x double>* %q
+ ret void
+}
+define void @d(<2 x i8>* %p, <2 x double>* %q) {
+ %t = load <2 x i8>* %p
+ %r = uitofp <2 x i8> %t to <2 x double>
+ store <2 x double> %r, <2 x double>* %q
+ ret void
+}
+define void @e(<2 x i8>* %p, <2 x i16>* %q) {
+ %t = load <2 x i8>* %p
+ %r = sext <2 x i8> %t to <2 x i16>
+ store <2 x i16> %r, <2 x i16>* %q
+ ret void
+}
+define void @f(<2 x i8>* %p, <2 x i16>* %q) {
+ %t = load <2 x i8>* %p
+ %r = zext <2 x i8> %t to <2 x i16>
+ store <2 x i16> %r, <2 x i16>* %q
+ ret void
+}
define void @g(<2 x i16>* %p, <2 x i8>* %q) {
- %t = load <2 x i16>* %p
- %r = trunc <2 x i16> %t to <2 x i8>
- store <2 x i8> %r, <2 x i8>* %q
- ret void
+ %t = load <2 x i16>* %p
+ %r = trunc <2 x i16> %t to <2 x i8>
+ store <2 x i8> %r, <2 x i8>* %q
+ ret void
}
More information about the llvm-commits
mailing list