diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2018-05-16 21:57:57 +0000 |
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2018-05-16 21:57:57 +0000 |
| commit | 60fe206793eb36c7e7257c61e33020571f9f9011 (patch) | |
| tree | ee262624f9cd54fa42275660ced77d906e987ec6 | |
| parent | 6dcda28ddced582a9d978afaa09b3a1a56ebec41 (diff) | |
| download | bcm5719-llvm-60fe206793eb36c7e7257c61e33020571f9f9011.tar.gz bcm5719-llvm-60fe206793eb36c7e7257c61e33020571f9f9011.zip | |
[AArch64] preserve test intent by removing undef
We need to clean up the DAG floating-point undef logic.
This process is similar to how we handled integer undef
logic in D43141.
And as we did there, I'm trying to reduce the patch by
changing tests that would probably become meaningless
once we correct FP undef folding.
llvm-svn: 332534
| -rw-r--r-- | llvm/test/CodeGen/AArch64/arm64-collect-loh.ll | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/CodeGen/AArch64/arm64-collect-loh.ll b/llvm/test/CodeGen/AArch64/arm64-collect-loh.ll index dc34ee243b2..41b882e9951 100644 --- a/llvm/test/CodeGen/AArch64/arm64-collect-loh.ll +++ b/llvm/test/CodeGen/AArch64/arm64-collect-loh.ll @@ -661,7 +661,7 @@ define void @uninterestingSub(i8* nocapture %row) #0 { @.str.89 = external unnamed_addr constant [12 x i8], align 1 @.str.90 = external unnamed_addr constant [5 x i8], align 1 ; CHECK-LABEL: test_r274582 -define void @test_r274582() { +define void @test_r274582(double %x) { entry: br i1 undef, label %if.then.i, label %if.end.i if.then.i: @@ -671,8 +671,8 @@ if.end.i: ; CHECK: .loh AdrpLdrGot ; CHECK: .loh AdrpAdrp ; CHECK: .loh AdrpLdr - %mul.i.i.i = fmul double undef, 1.000000e-06 - %add.i.i.i = fadd double undef, %mul.i.i.i + %mul = fmul double %x, 1.000000e-06 + %add.i.i.i = fadd double %mul, %mul %sub.i.i = fsub double %add.i.i.i, undef call void (i8*, ...) @callee(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.89, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.90, i64 0, i64 0), double %sub.i.i) unreachable |

