summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Hexagon/extlow.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/Hexagon/extlow.ll')
-rw-r--r--llvm/test/CodeGen/Hexagon/extlow.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Hexagon/extlow.ll b/llvm/test/CodeGen/Hexagon/extlow.ll
new file mode 100644
index 00000000000..96462f2e39a
--- /dev/null
+++ b/llvm/test/CodeGen/Hexagon/extlow.ll
@@ -0,0 +1,12 @@
+; RUN: llc -march=hexagon -O0 %s -o - | llvm-mc -arch=hexagon -filetype=obj | llvm-objdump -d - | FileCheck %s
+
+; CHECK: immext(#16777216)
+; CHECK-NEXT: r0 = add(r0,##16777279)
+
+define void @f0(i32 %a0) {
+b0:
+ %v0 = add i32 16777279, %a0
+ %v1 = alloca i32, align 4
+ store i32 %v0, i32* %v1, align 4
+ ret void
+}
OpenPOWER on IntegriCloud