[llvm] r284566 - Update the section.ll to fix non-x86 failure.

Justin Bogner via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 18 23:46:24 PDT 2016


Dehao Chen via llvm-commits <llvm-commits at lists.llvm.org> writes:
> Author: dehao
> Date: Tue Oct 18 22:53:41 2016
> New Revision: 284566
>
> URL: http://llvm.org/viewvc/llvm-project?rev=284566&view=rev
> Log:
> Update the section.ll to fix non-x86 failure.

How is this supposed to fix a non-x86 failure? The .ll file has an
x86_64 triple, so this obviously fails for anyone who doesn't build an
x86 backend.

> Modified:
>     llvm/trunk/test/Transforms/CodeGenPrepare/section.ll
>
> Modified: llvm/trunk/test/Transforms/CodeGenPrepare/section.ll
> URL:
> http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/CodeGenPrepare/section.ll?rev=284566&r1=284565&r2=284566&view=diff
> ==============================================================================
> --- llvm/trunk/test/Transforms/CodeGenPrepare/section.ll (original)
> +++ llvm/trunk/test/Transforms/CodeGenPrepare/section.ll Tue Oct 18 22:53:41 2016
> @@ -1,26 +1,21 @@
> -; RUN: opt < %s -codegenprepare -S | FileCheck --check-prefixes=CHECK-OPT %s
> -; RUN: llc < %s -o - | FileCheck --check-prefixes=CHECK-LLC %s
> +; RUN: opt < %s -codegenprepare -S | FileCheck %s
>  
>  target triple = "x86_64-pc-linux-gnu"
>  
>  ; This tests that hot/cold functions get correct section prefix assigned
>  
> -; CHECK-OPT: hot_func{{.*}}!section_prefix ![[HOT_ID:[0-9]+]]
> -; CHECK-LLC: .section .text.hot
> -; CHECK-LLC-NEXT: .globl hot_func
> +; CHECK: hot_func{{.*}}!section_prefix ![[HOT_ID:[0-9]+]]
>  define void @hot_func() !prof !15 {
>    ret void
>  }
>  
> -; CHECK-OPT: cold_func{{.*}}!section_prefix ![[COLD_ID:[0-9]+]]
> -; CHECK-LLC: .section .text.cold
> -; CHECK-LLC-NEXT: .globl cold_func
> +; CHECK: cold_func{{.*}}!section_prefix ![[COLD_ID:[0-9]+]]
>  define void @cold_func() !prof !16 {
>    ret void
>  }
>  
> -; CHECK-OPT: ![[HOT_ID]] = !{!"function_section_prefix", !".hot"}
> -; CHECK-OPT: ![[COLD_ID]] = !{!"function_section_prefix", !".cold"}
> +; CHECK: ![[HOT_ID]] = !{!"function_section_prefix", !".hot"}
> +; CHECK: ![[COLD_ID]] = !{!"function_section_prefix", !".cold"}
>  !llvm.module.flags = !{!1}
>  !1 = !{i32 1, !"ProfileSummary", !2}
>  !2 = !{!3, !4, !5, !6, !7, !8, !9, !10}
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits


More information about the llvm-commits mailing list