diff options
author | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2016-04-25 12:49:47 +0000 |
---|---|---|
committer | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2016-04-25 12:49:47 +0000 |
commit | e6ee481bdfec4776cdbb795511adafd2869ef62a (patch) | |
tree | d697fcc8eb6b674dc4519b2ac67b01ee90811bb0 /llvm/test | |
parent | d79073dc2a7187b39200461216c74010bb4e14b6 (diff) | |
download | bcm5719-llvm-e6ee481bdfec4776cdbb795511adafd2869ef62a.tar.gz bcm5719-llvm-e6ee481bdfec4776cdbb795511adafd2869ef62a.zip |
[Hexagon] Correctly set "Flags" in ELF header
llvm-svn: 267397
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/MC/Hexagon/elf-flags.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/MC/Hexagon/elf-flags.ll b/llvm/test/MC/Hexagon/elf-flags.ll new file mode 100644 index 00000000000..ec1d22b38d7 --- /dev/null +++ b/llvm/test/MC/Hexagon/elf-flags.ll @@ -0,0 +1,9 @@ +; RUN: llc -march=hexagon -mcpu=hexagonv4 --filetype=obj %s -o - | llvm-readobj -file-headers -elf-output-style=GNU | FileCheck --check-prefix=CHECK-V4 %s +; RUN: llc -march=hexagon -mcpu=hexagonv5 --filetype=obj %s -o - | llvm-readobj -file-headers -elf-output-style=GNU | FileCheck --check-prefix=CHECK-V5 %s +; RUN: llc -march=hexagon -mcpu=hexagonv55 --filetype=obj %s -o - | llvm-readobj -file-headers -elf-output-style=GNU | FileCheck --check-prefix=CHECK-V55 %s +; RUN: llc -march=hexagon -mcpu=hexagonv60 --filetype=obj %s -o - | llvm-readobj -file-headers -elf-output-style=GNU | FileCheck --check-prefix=CHECK-V60 %s + +; CHECK-V4: Flags: 0x3 +; CHECK-V5: Flags: 0x4 +; CHECK-V55: Flags: 0x5 +; CHECK-V60: Flags: 0x60 |