[llvm] r231481 - [AsmPrinter][TLOF] Make AArch64 test a bit more flexible

H.J. Lu hjl.tools at gmail.com
Fri Mar 6 08:54:35 PST 2015


It fails on Linux/x86-64:

******************** TEST 'LLVM ::
MC/MachO/AArch64/cstexpr-gotpcrel.ll' FAILED ********************
Script:
--
/export/build/gnu/llvm-clang/build-x86_64-linux/./bin/llc
-mtriple=arm64-apple-darwin
/export/gnu/import/git/llvm/test/MC/MachO/AArch64/cstexpr-gotpcrel.ll
-o /export/build/gnu/llvm-clang/build-x86_64-linux/test/MC/MachO/AArch64/Output/cstexpr-gotpcrel.ll.tmp
/export/build/gnu/llvm-clang/build-x86_64-linux/./bin/FileCheck
/export/gnu/import/git/llvm/test/MC/MachO/AArch64/cstexpr-gotpcrel.ll
-check-prefix=ARM <
/export/build/gnu/llvm-clang/build-x86_64-linux/test/MC/MachO/AArch64/Output/cstexpr-gotpcrel.ll.tmp
/export/build/gnu/llvm-clang/build-x86_64-linux/./bin/FileCheck
/export/gnu/import/git/llvm/test/MC/MachO/AArch64/cstexpr-gotpcrel.ll
-check-prefix=ARM-GOT-EQUIV <
/export/build/gnu/llvm-clang/build-x86_64-linux/test/MC/MachO/AArch64/Output/cstexpr-gotpcrel.ll.tmp
--
Exit Code: 1

Command Output (stderr):
--
/export/gnu/import/git/llvm/test/MC/MachO/AArch64/cstexpr-gotpcrel.ll:16:18:
error: expected string not found in input
; ARM-GOT-EQUIV: {{.*}}localgotequiv:
                 ^
<stdin>:70:2: note: scanning from here
 .quad _extfoo
 ^

--

On Fri, Mar 6, 2015 at 7:11 AM, Bruno Cardoso Lopes
<bruno.cardoso at gmail.com> wrote:
> Author: bruno
> Date: Fri Mar  6 09:11:41 2015
> New Revision: 231481
>
> URL: http://llvm.org/viewvc/llvm-project?rev=231481&view=rev
> Log:
> [AsmPrinter][TLOF] Make AArch64 test a bit more flexible
>
> Modified:
>     llvm/trunk/test/MC/MachO/AArch64/cstexpr-gotpcrel.ll
>
> Modified: llvm/trunk/test/MC/MachO/AArch64/cstexpr-gotpcrel.ll
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/MachO/AArch64/cstexpr-gotpcrel.ll?rev=231481&r1=231480&r2=231481&view=diff
> ==============================================================================
> --- llvm/trunk/test/MC/MachO/AArch64/cstexpr-gotpcrel.ll (original)
> +++ llvm/trunk/test/MC/MachO/AArch64/cstexpr-gotpcrel.ll Fri Mar  6 09:11:41 2015
> @@ -8,12 +8,12 @@
>  %struct.data = type { i32, %struct.anon }
>  %struct.anon = type { i32, i32 }
>
> -; Check that these got equivalent symbols are never emitted on x86-64 and
> -; emitted on ARM64. Since ARM64 does not support encoding an extra offset with
> -; @GOT, we still need to emit the equivalents for use by such IR constructs.
> +; Check that these got equivalent symbols are emitted on ARM64. Since ARM64 does
> +; not support encoding an extra offset with @GOT, we still need to emit the
> +; equivalents for use by such IR constructs.
>
> -; ARM-GOT-EQUIV-LABEL: l_extgotequiv:
> -; ARM-GOT-EQUIV-LABEL: l_localgotequiv:
> +; ARM-GOT-EQUIV: {{.*}}extgotequiv:
> +; ARM-GOT-EQUIV: {{.*}}localgotequiv:
>  @localfoo = global i32 42
>  @localgotequiv = private unnamed_addr constant i32* @localfoo
>
> @@ -24,7 +24,7 @@
>  ; equivalent since it can't be replaced by the GOT entry. @bargotequiv is
>  ; used by an instruction inside @t0.
>  ;
> -; ARM: l_bargotequiv:
> +; ARM: {{.*}}bargotequiv:
>  ; ARM-NEXT:  .quad   _extbar
>  @extbar = external global i32
>  @bargotequiv = private unnamed_addr constant i32* @extbar
> @@ -57,7 +57,7 @@
>  ; supported on x86-64 but not on ARM64
>
>  ; ARM: .long   5
> -; ARM-NEXT: .long (l_extgotequiv-(_table+44))+24
> +; ARM-NEXT: .long ({{.*}}extgotequiv-(_table+44))+24
>    %struct.data { i32 4, %struct.anon { i32 5,
>      i32 add (i32 trunc (i64 sub (i64 ptrtoint (i32** @extgotequiv to i64),
>                                   i64 ptrtoint (i32* getelementptr inbounds ([4 x %struct.data]* @table, i32 0, i64 3, i32 1, i32 1) to i64))
> @@ -75,7 +75,7 @@
>                             to i32)
>
>  ; ARM-LABEL: _deltaplus:
> -; ARM: .long  (l_localgotequiv-_deltaplus)+55
> +; ARM: .long  ({{.*}}localgotequiv-_deltaplus)+55
>  @deltaplus = global i32 add (i32 trunc (i64 sub (i64 ptrtoint (i32** @localgotequiv to i64),
>                                          i64 ptrtoint (i32* @deltaplus to i64))
>                                          to i32), i32 55)
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits



-- 
H.J.



More information about the llvm-commits mailing list