diff options
| author | Daniel Sanders <daniel.sanders@imgtec.com> | 2014-07-14 10:26:15 +0000 |
|---|---|---|
| committer | Daniel Sanders <daniel.sanders@imgtec.com> | 2014-07-14 10:26:15 +0000 |
| commit | 9ee2aee85962b453801a06eac3258595f193ec4a (patch) | |
| tree | 0caab913cf55a4675ac3b1d90bca423bdc115f4b /llvm/test | |
| parent | 3362c5fb0fcff70a52e606b7a57754aba5f9a3a9 (diff) | |
| download | bcm5719-llvm-9ee2aee85962b453801a06eac3258595f193ec4a.tar.gz bcm5719-llvm-9ee2aee85962b453801a06eac3258595f193ec4a.zip | |
[mips] Correct the AFL_FLAGS1_ODDSPREG flag in .MIPS.abiflags when no '.module oddspreg' is used
Differential Revision: http://reviews.llvm.org/D4486
llvm-svn: 212932
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/MC/Mips/mips32/abiflags.s | 2 | ||||
| -rw-r--r-- | llvm/test/MC/Mips/mips32r2/abiflags.s | 2 | ||||
| -rw-r--r-- | llvm/test/MC/Mips/mips64/abiflags.s | 2 | ||||
| -rw-r--r-- | llvm/test/MC/Mips/mips64r2/abiflags.s | 2 | ||||
| -rw-r--r-- | llvm/test/MC/Mips/mips_abi_flags_xx.s | 2 | ||||
| -rw-r--r-- | llvm/test/MC/Mips/mips_abi_flags_xx_set.s | 2 | ||||
| -rw-r--r-- | llvm/test/MC/Mips/msa/abiflags.s | 2 | ||||
| -rw-r--r-- | llvm/test/MC/Mips/oddspreg.s | 16 |
8 files changed, 22 insertions, 8 deletions
diff --git a/llvm/test/MC/Mips/mips32/abiflags.s b/llvm/test/MC/Mips/mips32/abiflags.s index 021ff793cea..3f568648037 100644 --- a/llvm/test/MC/Mips/mips32/abiflags.s +++ b/llvm/test/MC/Mips/mips32/abiflags.s @@ -26,7 +26,7 @@ # CHECK-OBJ: ] # CHECK-OBJ: SectionData ( # CHECK-OBJ: 0000: 00002001 01010001 00000000 00000000 |.. .............| -# CHECK-OBJ: 0010: 00000000 00000000 |........| +# CHECK-OBJ: 0010: 00000001 00000000 |........| # CHECK-OBJ: ) # CHECK-OBJ: } diff --git a/llvm/test/MC/Mips/mips32r2/abiflags.s b/llvm/test/MC/Mips/mips32r2/abiflags.s index 1904117ef66..228ba57e8b8 100644 --- a/llvm/test/MC/Mips/mips32r2/abiflags.s +++ b/llvm/test/MC/Mips/mips32r2/abiflags.s @@ -27,7 +27,7 @@ # CHECK-OBJ: ] # CHECK-OBJ: SectionData ( # CHECK-OBJ: 0000: 00002002 01010001 00000000 00000000 |.. .............| -# CHECK-OBJ: 0010: 00000000 00000000 |........| +# CHECK-OBJ: 0010: 00000001 00000000 |........| # CHECK-OBJ: ) # CHECK-OBJ: } diff --git a/llvm/test/MC/Mips/mips64/abiflags.s b/llvm/test/MC/Mips/mips64/abiflags.s index b41d914f1b2..0b4bad09210 100644 --- a/llvm/test/MC/Mips/mips64/abiflags.s +++ b/llvm/test/MC/Mips/mips64/abiflags.s @@ -26,7 +26,7 @@ # CHECK-OBJ: ] # CHECK-OBJ: SectionData ( # CHECK-OBJ: 0000: 00004001 02020001 00000000 00000000 |..@.............| -# CHECK-OBJ: 0010: 00000000 00000000 |........| +# CHECK-OBJ: 0010: 00000001 00000000 |........| # CHECK-OBJ: ) # CHECK-OBJ: } diff --git a/llvm/test/MC/Mips/mips64r2/abiflags.s b/llvm/test/MC/Mips/mips64r2/abiflags.s index b76a4b4720d..82afbbba935 100644 --- a/llvm/test/MC/Mips/mips64r2/abiflags.s +++ b/llvm/test/MC/Mips/mips64r2/abiflags.s @@ -26,7 +26,7 @@ # CHECK-OBJ: ] # CHECK-OBJ: SectionData ( # CHECK-OBJ: 0000: 00004002 02020001 00000000 00000000 |..@.............| -# CHECK-OBJ: 0010: 00000000 00000000 |........| +# CHECK-OBJ: 0010: 00000001 00000000 |........| # CHECK-OBJ: ) # CHECK-OBJ: } diff --git a/llvm/test/MC/Mips/mips_abi_flags_xx.s b/llvm/test/MC/Mips/mips_abi_flags_xx.s index 47d90841d86..b8416fc2454 100644 --- a/llvm/test/MC/Mips/mips_abi_flags_xx.s +++ b/llvm/test/MC/Mips/mips_abi_flags_xx.s @@ -26,7 +26,7 @@ # CHECK-OBJ: ] # CHECK-OBJ: SectionData ( # CHECK-OBJ: 0000: 00002001 01010005 00000000 00000000 |.. .............| -# CHECK-OBJ: 0010: 00000000 00000000 |........| +# CHECK-OBJ: 0010: 00000001 00000000 |........| # CHECK-OBJ: ) # CHECK-OBJ: } diff --git a/llvm/test/MC/Mips/mips_abi_flags_xx_set.s b/llvm/test/MC/Mips/mips_abi_flags_xx_set.s index 9694b9de5a5..0c2d9bb7e95 100644 --- a/llvm/test/MC/Mips/mips_abi_flags_xx_set.s +++ b/llvm/test/MC/Mips/mips_abi_flags_xx_set.s @@ -27,7 +27,7 @@ # CHECK-OBJ: ] # CHECK-OBJ: SectionData ( # CHECK-OBJ: 0000: 00002001 01010005 00000000 00000000 |.. .............| -# CHECK-OBJ: 0010: 00000000 00000000 |........| +# CHECK-OBJ: 0010: 00000001 00000000 |........| # CHECK-OBJ: ) # CHECK-OBJ: } diff --git a/llvm/test/MC/Mips/msa/abiflags.s b/llvm/test/MC/Mips/msa/abiflags.s index 3b13870f8d4..7856447f009 100644 --- a/llvm/test/MC/Mips/msa/abiflags.s +++ b/llvm/test/MC/Mips/msa/abiflags.s @@ -27,7 +27,7 @@ # CHECK-OBJ: ] # CHECK-OBJ: SectionData ( # CHECK-OBJ: 0000: 00002002 01030001 00000000 00000200 |.. .............| -# CHECK-OBJ: 0010: 00000000 00000000 |........| +# CHECK-OBJ: 0010: 00000001 00000000 |........| # CHECK-OBJ: ) # CHECK-OBJ: } diff --git a/llvm/test/MC/Mips/oddspreg.s b/llvm/test/MC/Mips/oddspreg.s index 39155f2b059..a7b0c4b189e 100644 --- a/llvm/test/MC/Mips/oddspreg.s +++ b/llvm/test/MC/Mips/oddspreg.s @@ -15,7 +15,21 @@ # RUN: llvm-mc %s -arch=mips64 -mcpu=mips64 | \ # RUN: FileCheck %s -check-prefix=CHECK-ASM # -# RUN: llvm-mc %s -arch=mips64 -mcpu=mips64 -filetype=obj -o - | \ +# Repeat the -filetype=obj tests but this time use an empty assembly file. The +# output should be unchanged. +# RUN: llvm-mc /dev/null -arch=mips64 -mcpu=mips64 -filetype=obj -o - | \ +# RUN: llvm-readobj -sections -section-data -section-relocations - | \ +# RUN: FileCheck %s -check-prefix=CHECK-OBJ-ALL -check-prefix=CHECK-OBJ-N64 + +# RUN: llvm-mc /dev/null -arch=mips -mcpu=mips32 -mattr=+fp64 -filetype=obj -o - | \ +# RUN: llvm-readobj -sections -section-data -section-relocations - | \ +# RUN: FileCheck %s -check-prefix=CHECK-OBJ-ALL -check-prefix=CHECK-OBJ-O32 +# +# RUN: llvm-mc /dev/null -arch=mips64 -mcpu=mips64 -mattr=-n64,+n32 -filetype=obj -o - | \ +# RUN: llvm-readobj -sections -section-data -section-relocations - | \ +# RUN: FileCheck %s -check-prefix=CHECK-OBJ-ALL -check-prefix=CHECK-OBJ-N32 + +# RUN: llvm-mc /dev/null -arch=mips64 -mcpu=mips64 -filetype=obj -o - | \ # RUN: llvm-readobj -sections -section-data -section-relocations - | \ # RUN: FileCheck %s -check-prefix=CHECK-OBJ-ALL -check-prefix=CHECK-OBJ-N64 |

