diff options
Diffstat (limited to 'test/MC/Hexagon')
-rw-r--r-- | test/MC/Hexagon/inst_add.ll | 6 | ||||
-rw-r--r-- | test/MC/Hexagon/inst_cmp_eq.ll | 6 | ||||
-rw-r--r-- | test/MC/Hexagon/inst_cmp_eqi.ll | 6 | ||||
-rw-r--r-- | test/MC/Hexagon/inst_cmp_gt.ll | 6 | ||||
-rw-r--r-- | test/MC/Hexagon/inst_cmp_gti.ll | 6 | ||||
-rw-r--r-- | test/MC/Hexagon/inst_cmp_lt.ll | 6 | ||||
-rw-r--r-- | test/MC/Hexagon/inst_cmp_ugt.ll | 6 | ||||
-rw-r--r-- | test/MC/Hexagon/inst_cmp_ugti.ll | 6 | ||||
-rw-r--r-- | test/MC/Hexagon/inst_cmp_ult.ll | 6 | ||||
-rw-r--r-- | test/MC/Hexagon/inst_select.ll | 9 | ||||
-rw-r--r-- | test/MC/Hexagon/inst_sxtb.ll | 6 | ||||
-rw-r--r-- | test/MC/Hexagon/inst_sxth.ll | 6 | ||||
-rw-r--r-- | test/MC/Hexagon/inst_zxtb.ll | 6 | ||||
-rw-r--r-- | test/MC/Hexagon/inst_zxth.ll | 6 |
14 files changed, 53 insertions, 34 deletions
diff --git a/test/MC/Hexagon/inst_add.ll b/test/MC/Hexagon/inst_add.ll index 20a7b312ed6db..826776952e050 100644 --- a/test/MC/Hexagon/inst_add.ll +++ b/test/MC/Hexagon/inst_add.ll @@ -1,5 +1,5 @@ -;; RUN: llc -mtriple=hexagon-unknown-elf -filetype=obj %s -o - \ -;; RUN: | llvm-objdump -s - | FileCheck %s +; RUN: llc -march=hexagon -filetype=obj %s -o - \ +; RUN: | llvm-objdump -d - | FileCheck %s define i32 @foo (i32 %a, i32 %b) { @@ -7,4 +7,4 @@ define i32 @foo (i32 %a, i32 %b) ret i32 %1 } -; CHECK: 0000 004100f3 00c09f52 +; CHECK: c0 3f 10 58 58103fc0 diff --git a/test/MC/Hexagon/inst_cmp_eq.ll b/test/MC/Hexagon/inst_cmp_eq.ll index 113db631fa92f..98202368aff35 100644 --- a/test/MC/Hexagon/inst_cmp_eq.ll +++ b/test/MC/Hexagon/inst_cmp_eq.ll @@ -1,5 +1,5 @@ ;; RUN: llc -mtriple=hexagon-unknown-elf -filetype=obj %s -o - \ -;; RUN: | llvm-objdump -s - | FileCheck %s +;; RUN: | llvm-objdump -d - | FileCheck %s define i1 @foo (i32 %a, i32 %b) { @@ -7,4 +7,6 @@ define i1 @foo (i32 %a, i32 %b) ret i1 %1 } -; CHECK: 0000 004100f2 00404089 00c09f52 +; CHECK: p0 = cmp.eq(r0, r1) +; CHECK: r0 = p0 +; CHECK: jumpr r31 diff --git a/test/MC/Hexagon/inst_cmp_eqi.ll b/test/MC/Hexagon/inst_cmp_eqi.ll index 70c4c308e1f4c..612dfdc8f23da 100644 --- a/test/MC/Hexagon/inst_cmp_eqi.ll +++ b/test/MC/Hexagon/inst_cmp_eqi.ll @@ -1,5 +1,5 @@ ;; RUN: llc -mtriple=hexagon-unknown-elf -filetype=obj %s -o - \ -;; RUN: | llvm-objdump -s - | FileCheck %s +;; RUN: | llvm-objdump -d - | FileCheck %s define i1 @foo (i32 %a) { @@ -7,4 +7,6 @@ define i1 @foo (i32 %a) ret i1 %1 } -; CHECK: 0000 40450075 00404089 00c09f52 +; CHECK: p0 = cmp.eq(r0, #42) +; CHECK: r0 = p0 +; CHECK: jumpr r31 diff --git a/test/MC/Hexagon/inst_cmp_gt.ll b/test/MC/Hexagon/inst_cmp_gt.ll index 85fedbfb50347..3ce1c0addad7a 100644 --- a/test/MC/Hexagon/inst_cmp_gt.ll +++ b/test/MC/Hexagon/inst_cmp_gt.ll @@ -1,5 +1,5 @@ ;; RUN: llc -mtriple=hexagon-unknown-elf -filetype=obj %s -o - \ -;; RUN: | llvm-objdump -s - | FileCheck %s +;; RUN: | llvm-objdump -d - | FileCheck %s define i1 @foo (i32 %a, i32 %b) { @@ -7,4 +7,6 @@ define i1 @foo (i32 %a, i32 %b) ret i1 %1 } -; CHECK: 0000 004140f2 00404089 00c09f52 +; CHECK: p0 = cmp.gt(r0, r1) +; CHECK: r0 = p0 +; CHECK: jumpr r31 }
\ No newline at end of file diff --git a/test/MC/Hexagon/inst_cmp_gti.ll b/test/MC/Hexagon/inst_cmp_gti.ll index 18ba3e463ef7f..f3c13a2fb96e6 100644 --- a/test/MC/Hexagon/inst_cmp_gti.ll +++ b/test/MC/Hexagon/inst_cmp_gti.ll @@ -1,5 +1,5 @@ ;; RUN: llc -mtriple=hexagon-unknown-elf -filetype=obj %s -o - \ -;; RUN: | llvm-objdump -s - | FileCheck %s +;; RUN: | llvm-objdump -d - | FileCheck %s define i1 @foo (i32 %a) { @@ -7,4 +7,6 @@ define i1 @foo (i32 %a) ret i1 %1 } -; CHECK: 0000 40454075 00404089 00c09f52 +; CHECK: p0 = cmp.gt(r0, #42) +; CHECK: r0 = p0 +; CHECK: jumpr r31 diff --git a/test/MC/Hexagon/inst_cmp_lt.ll b/test/MC/Hexagon/inst_cmp_lt.ll index 3a7618421e3d8..80ba16f41418c 100644 --- a/test/MC/Hexagon/inst_cmp_lt.ll +++ b/test/MC/Hexagon/inst_cmp_lt.ll @@ -1,5 +1,5 @@ ;; RUN: llc -mtriple=hexagon-unknown-elf -filetype=obj %s -o - \ -;; RUN: | llvm-objdump -s - | FileCheck %s +;; RUN: | llvm-objdump -d - | FileCheck %s define i1 @foo (i32 %a, i32 %b) { @@ -7,4 +7,6 @@ define i1 @foo (i32 %a, i32 %b) ret i1 %1 } -; CHECK: 0000 004041f2 00404089 00c09f52 +; CHECK: p0 = cmp.gt(r1, r0) +; CHECK: r0 = p0 +; CHECK: jumpr r31 diff --git a/test/MC/Hexagon/inst_cmp_ugt.ll b/test/MC/Hexagon/inst_cmp_ugt.ll index 096536f54a7a5..07fa784dc64ad 100644 --- a/test/MC/Hexagon/inst_cmp_ugt.ll +++ b/test/MC/Hexagon/inst_cmp_ugt.ll @@ -1,5 +1,5 @@ ;; RUN: llc -mtriple=hexagon-unknown-elf -filetype=obj %s -o - \ -;; RUN: | llvm-objdump -s - | FileCheck %s +;; RUN: | llvm-objdump -d - | FileCheck %s define i1 @foo (i32 %a, i32 %b) { @@ -7,4 +7,6 @@ define i1 @foo (i32 %a, i32 %b) ret i1 %1 } -; CHECK: 0000 004160f2 00404089 00c09f52 +; CHECK: p0 = cmp.gtu(r0, r1) +; CHECK: r0 = p0 +; CHECK: jumpr r31 diff --git a/test/MC/Hexagon/inst_cmp_ugti.ll b/test/MC/Hexagon/inst_cmp_ugti.ll index a83583457d136..59db552b39f4d 100644 --- a/test/MC/Hexagon/inst_cmp_ugti.ll +++ b/test/MC/Hexagon/inst_cmp_ugti.ll @@ -1,5 +1,5 @@ ;; RUN: llc -mtriple=hexagon-unknown-elf -filetype=obj %s -o - \ -;; RUN: | llvm-objdump -s - | FileCheck %s +;; RUN: | llvm-objdump -d - | FileCheck %s define i1 @foo (i32 %a) { @@ -7,4 +7,6 @@ define i1 @foo (i32 %a) ret i1 %1 } -; CHECK: 0000 40458075 00404089 00c09f52 +; CHECK: p0 = cmp.gtu(r0, #42) +; CHECK: r0 = p0 +; CHECK: jumpr r31 diff --git a/test/MC/Hexagon/inst_cmp_ult.ll b/test/MC/Hexagon/inst_cmp_ult.ll index 4323fa0834d67..c880ac8a229c9 100644 --- a/test/MC/Hexagon/inst_cmp_ult.ll +++ b/test/MC/Hexagon/inst_cmp_ult.ll @@ -1,5 +1,5 @@ ;; RUN: llc -mtriple=hexagon-unknown-elf -filetype=obj %s -o - \ -;; RUN: | llvm-objdump -s - | FileCheck %s +;; RUN: | llvm-objdump -d - | FileCheck %s define i1 @foo (i32 %a, i32 %b) { @@ -7,4 +7,6 @@ define i1 @foo (i32 %a, i32 %b) ret i1 %1 } -; CHECK: 0000 004061f2 00404089 00c09f52 +; CHECK: p0 = cmp.gtu(r1, r0) +; CHECK: r0 = p0 +; CHECK: jumpr r31
\ No newline at end of file diff --git a/test/MC/Hexagon/inst_select.ll b/test/MC/Hexagon/inst_select.ll index 29a2db0723bd2..9d12c1de73fef 100644 --- a/test/MC/Hexagon/inst_select.ll +++ b/test/MC/Hexagon/inst_select.ll @@ -1,5 +1,5 @@ -;; RUN: llc -mtriple=hexagon-unknown-elf -filetype=obj %s -o - \ -;; RUN: | llvm-objdump -s - | FileCheck %s +; RUN: llc -march=hexagon -filetype=obj %s -o - \ +; RUN: | llvm-objdump -d - | FileCheck %s define i32 @foo (i1 %a, i32 %b, i32 %c) { @@ -7,4 +7,7 @@ define i32 @foo (i1 %a, i32 %b, i32 %c) ret i32 %1 } -; CHECK: 0000 00400085 00600174 00608274 00c09f52 +; CHECK: 00 40 00 85 85004000 +; CHECK: 00 40 9f 52 529f4000 +; CHECK: 00 60 01 74 74016000 +; CHECK: 00 e0 82 74 7482e000
\ No newline at end of file diff --git a/test/MC/Hexagon/inst_sxtb.ll b/test/MC/Hexagon/inst_sxtb.ll index 4a217420a9607..34219c72c99ee 100644 --- a/test/MC/Hexagon/inst_sxtb.ll +++ b/test/MC/Hexagon/inst_sxtb.ll @@ -1,5 +1,5 @@ -;; RUN: llc -mtriple=hexagon-unknown-elf -filetype=obj %s -o - \ -;; RUN: | llvm-objdump -s - | FileCheck %s +; RUN: llc -march=hexagon -filetype=obj %s -o - \ +; RUN: | llvm-objdump -d - | FileCheck %s define i32 @foo (i8 %a) { @@ -7,4 +7,4 @@ define i32 @foo (i8 %a) ret i32 %1 } -; CHECK: 0000 0040a070 00c09f52 +; CHECK: c0 3f 00 55 55003fc0 diff --git a/test/MC/Hexagon/inst_sxth.ll b/test/MC/Hexagon/inst_sxth.ll index f0bcf584efa9b..5d1223da8e08f 100644 --- a/test/MC/Hexagon/inst_sxth.ll +++ b/test/MC/Hexagon/inst_sxth.ll @@ -1,5 +1,5 @@ -;; RUN: llc -mtriple=hexagon-unknown-elf -filetype=obj %s -o - \ -;; RUN: | llvm-objdump -s - | FileCheck %s +; RUN: llc -mtriple=hexagon-unknown-elf -filetype=obj %s -o - \ +; RUN: | llvm-objdump -d - | FileCheck %s define i32 @foo (i16 %a) { @@ -7,4 +7,4 @@ define i32 @foo (i16 %a) ret i32 %1 } -; CHECK: 0000 0040e070 00c09f52 +; CHECK: c0 3f 00 54 54003fc0
\ No newline at end of file diff --git a/test/MC/Hexagon/inst_zxtb.ll b/test/MC/Hexagon/inst_zxtb.ll index 622c03692b2f4..86da5e52cac1d 100644 --- a/test/MC/Hexagon/inst_zxtb.ll +++ b/test/MC/Hexagon/inst_zxtb.ll @@ -1,5 +1,5 @@ -;; RUN: llc -mtriple=hexagon-unknown-elf -filetype=obj %s -o - \ -;; RUN: | llvm-objdump -s - | FileCheck %s +; RUN: llc -march=hexagon -filetype=obj %s -o - \ +; RUN: | llvm-objdump -d - | FileCheck %s define i32 @foo (i8 %a) { @@ -7,4 +7,4 @@ define i32 @foo (i8 %a) ret i32 %1 } -; CHECK: 0000 e05f0076 00c09f52 +; CHECK: c0 3f 00 57 57003fc0 diff --git a/test/MC/Hexagon/inst_zxth.ll b/test/MC/Hexagon/inst_zxth.ll index 962210b17511c..7b3d1b30648c1 100644 --- a/test/MC/Hexagon/inst_zxth.ll +++ b/test/MC/Hexagon/inst_zxth.ll @@ -1,5 +1,5 @@ -;; RUN: llc -mtriple=hexagon-unknown-elf -filetype=obj %s -o - \ -;; RUN: | llvm-objdump -s - | FileCheck %s +; RUN: llc -march=hexagon -filetype=obj %s -o - \ +; RUN: | llvm-objdump -d - | FileCheck %s define i32 @foo (i16 %a) { @@ -7,4 +7,4 @@ define i32 @foo (i16 %a) ret i32 %1 } -; CHECK: 0000 0040c070 00c09f52 +; CHECK: c0 3f 00 56 56003fc0 |