[llvm] r364685 - [NFC][NewGVN] Explicitly check fpmath metadata in fpmath.ll

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 28 14:54:36 PDT 2019


Great, thanks!

> On 28 Jun 2019, at 22:39, Cameron McInally via llvm-commits <llvm-commits at lists.llvm.org> wrote:
> 
> Author: mcinally
> Date: Fri Jun 28 14:39:08 2019
> New Revision: 364685
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=364685&view=rev
> Log:
> [NFC][NewGVN] Explicitly check fpmath metadata in fpmath.ll
> 
> Suggested in D63933.
> 
> Modified:
>    llvm/trunk/test/Transforms/NewGVN/fpmath.ll
> 
> Modified: llvm/trunk/test/Transforms/NewGVN/fpmath.ll
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/NewGVN/fpmath.ll?rev=364685&r1=364684&r2=364685&view=diff
> ==============================================================================
> --- llvm/trunk/test/Transforms/NewGVN/fpmath.ll (original)
> +++ llvm/trunk/test/Transforms/NewGVN/fpmath.ll Fri Jun 28 14:39:08 2019
> @@ -13,7 +13,7 @@ define double @test1(double %x, double %
> 
> define double @test2(double %x, double %y) {
> ; CHECK: @test2(double %x, double %y)
> -; CHECK: %add1 = fadd double %x, %y, !fpmath !0
> +; CHECK: %add1 = fadd double %x, %y, !fpmath ![[MD0:[0-9]+]]
> ; CHECK: %foo = fadd double %add1, %add1
>   %add1 = fadd double %x, %y, !fpmath !0
>   %add2 = fadd double %x, %y, !fpmath !0
> @@ -23,7 +23,7 @@ define double @test2(double %x, double %
> 
> define double @test3(double %x, double %y) {
> ; CHECK: @test3(double %x, double %y)
> -; CHECK: %add1 = fadd double %x, %y, !fpmath !1
> +; CHECK: %add1 = fadd double %x, %y, !fpmath ![[MD1:[0-9]+]]
> ; CHECK: %foo = fadd double %add1, %add1
>   %add1 = fadd double %x, %y, !fpmath !1
>   %add2 = fadd double %x, %y, !fpmath !0
> @@ -33,7 +33,7 @@ define double @test3(double %x, double %
> 
> define double @test4(double %x, double %y) {
> ; CHECK: @test4(double %x, double %y)
> -; CHECK: %add1 = fadd double %x, %y, !fpmath !1
> +; CHECK: %add1 = fadd double %x, %y, !fpmath ![[MD1]]
> ; CHECK: %foo = fadd double %add1, %add1
>   %add1 = fadd double %x, %y, !fpmath !0
>   %add2 = fadd double %x, %y, !fpmath !1
> @@ -43,7 +43,7 @@ define double @test4(double %x, double %
> 
> define double @test5(double %x) {
> ; CHECK: @test5(double %x)
> -; CHECK: %neg1 = fneg double %x, !fpmath !1
> +; CHECK: %neg1 = fneg double %x, !fpmath ![[MD1]]
> ; CHECK: %foo = fadd double %neg1, %neg1
>   %neg1 = fneg double %x, !fpmath !0
>   %neg2 = fneg double %x, !fpmath !1
> @@ -51,5 +51,8 @@ define double @test5(double %x) {
>   ret double %foo
> }
> 
> +; CHECK: ![[MD0]] = !{float 5.000000e+00}
> +; CHECK: ![[MD1]] = !{float 2.500000e+00}
> +
> !0 = !{ float 5.0 }
> !1 = !{ float 2.5 }
> 
> 
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits


More information about the llvm-commits mailing list