diff options
| author | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2017-07-10 18:38:52 +0000 |
|---|---|---|
| committer | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2017-07-10 18:38:52 +0000 |
| commit | df4a05d6fb1b205a82916a32b1c8f4d55ad53c5d (patch) | |
| tree | cba3039c8c1cb4e8d9b2ebbd5ebbc2f0d566d26e /llvm/test | |
| parent | b03c2b4b0984ce2ea131fb1f06aae6938222498f (diff) | |
| download | bcm5719-llvm-df4a05d6fb1b205a82916a32b1c8f4d55ad53c5d.tar.gz bcm5719-llvm-df4a05d6fb1b205a82916a32b1c8f4d55ad53c5d.zip | |
[Hexagon] Fix check for HMOTF_ConstExtend operand flag
This fixes https://llvm.org/PR33718.
llvm-svn: 307566
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/CodeGen/Hexagon/target-flag-ext.mir | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Hexagon/target-flag-ext.mir b/llvm/test/CodeGen/Hexagon/target-flag-ext.mir new file mode 100644 index 00000000000..49e0d2870e0 --- /dev/null +++ b/llvm/test/CodeGen/Hexagon/target-flag-ext.mir @@ -0,0 +1,24 @@ +# RUN: llc -march=hexagon -run-pass hexagon-packetizer -o - %s | FileCheck %s +--- +name: fred +tracksRegLiveness: true + +body: | + bb.0: + ; Check that all these instructions go in the same packet. This is to + ; make sure that a target flag (other than HMOTF_ConstExtend) on an + ; operand will not be interpreted as a constant-extender flag. + ; The combination used below (pcrel + 0) does not technically make sense, + ; but combinations that do make sense require constant extending, so + ; testing this is not possible otherwise. + + ; CHECK: BUNDLE + ; CHECK-DAG: %r0 = A2_tfrsi + ; CHECK-DAG: %r1 = A2_tfrsi + ; CHECK-DAG: %r2 = A2_tfrsi + ; CHECK: } + %r0 = A2_tfrsi target-flags (hexagon-pcrel) 0 + %r1 = A2_tfrsi target-flags (hexagon-pcrel) 0 + %r2 = A2_tfrsi target-flags (hexagon-pcrel) 0 +... + |

