summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/Hexagon/bit-skip-byval.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Hexagon/bit-skip-byval.ll b/llvm/test/CodeGen/Hexagon/bit-skip-byval.ll
new file mode 100644
index 00000000000..d6c1aad9400
--- /dev/null
+++ b/llvm/test/CodeGen/Hexagon/bit-skip-byval.ll
@@ -0,0 +1,11 @@
+; RUN: llc -march=hexagon < %s | FileCheck %s
+;
+; Either and or zxtb.
+; CHECK: r0 = and(r1, #255)
+
+%struct.t0 = type { i32 }
+
+define i32 @foo(%struct.t0* byval align 8 %s, i8 zeroext %t, i8 %u) #0 {
+ %a = zext i8 %u to i32
+ ret i32 %a
+}
OpenPOWER on IntegriCloud