aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Hexagon/vect/vect-packhl.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/Hexagon/vect/vect-packhl.ll')
-rw-r--r--test/CodeGen/Hexagon/vect/vect-packhl.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/Hexagon/vect/vect-packhl.ll b/test/CodeGen/Hexagon/vect/vect-packhl.ll
new file mode 100644
index 0000000..dfdb019
--- /dev/null
+++ b/test/CodeGen/Hexagon/vect/vect-packhl.ll
@@ -0,0 +1,10 @@
+; Extracted from test/CodeGen/Generic/vector-casts.ll: used to loop indefinitely.
+; RUN: llc -march=hexagon < %s | FileCheck %s
+; CHECK: packhl
+
+define void @a(<2 x double>* %p, <2 x i8>* %q) {
+ %t = load <2 x double>, <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
+}