]> granicus.if.org Git - llvm/commitdiff
[ARM] Fix tests for vcvt+store to return void.
authorEli Friedman <efriedma@codeaurora.org>
Mon, 25 Sep 2017 21:55:27 +0000 (21:55 +0000)
committerEli Friedman <efriedma@codeaurora.org>
Mon, 25 Sep 2017 21:55:27 +0000 (21:55 +0000)
This is what I meant to do in r314161; I didn't realize I'd messed up
because the generated assembly is currently identical.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314163 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/ARM/vcvt.ll

index 6fad4a308d3179d005e2903f3ce98814221f680e..884a1a47ae252330bf0fb0bc6381d796a02c8ec3 100644 (file)
@@ -380,7 +380,7 @@ define i32 @multi_uint(double %c, i32* nocapture %p, i32* nocapture %q) {
   ret i32 %conv
 }
 
-define i32 @double_to_sint_store(double %c, i32* nocapture %p) {
+define void @double_to_sint_store(double %c, i32* nocapture %p) {
 ; CHECK-LABEL: double_to_sint_store:
 ; CHECK:       @ BB#0:
 ; CHECK-NEXT:    vmov d16, r0, r1
@@ -390,10 +390,10 @@ define i32 @double_to_sint_store(double %c, i32* nocapture %p) {
 ; CHECK-NEXT:    mov pc, lr
   %conv = fptosi double %c to i32
   store i32 %conv, i32* %p, align 4
-  ret i32 %conv
+  ret void
 }
 
-define i32 @double_to_uint_store(double %c, i32* nocapture %p) {
+define void @double_to_uint_store(double %c, i32* nocapture %p) {
 ; CHECK-LABEL: double_to_uint_store:
 ; CHECK:       @ BB#0:
 ; CHECK-NEXT:    vmov d16, r0, r1
@@ -403,10 +403,10 @@ define i32 @double_to_uint_store(double %c, i32* nocapture %p) {
 ; CHECK-NEXT:    mov pc, lr
   %conv = fptoui double %c to i32
   store i32 %conv, i32* %p, align 4
-  ret i32 %conv
+  ret void
 }
 
-define i32 @float_to_sint_store(float %c, i32* nocapture %p) {
+define void @float_to_sint_store(float %c, i32* nocapture %p) {
 ; CHECK-LABEL: float_to_sint_store:
 ; CHECK:       @ BB#0:
 ; CHECK-NEXT:    vmov s0, r0
@@ -416,10 +416,10 @@ define i32 @float_to_sint_store(float %c, i32* nocapture %p) {
 ; CHECK-NEXT:    mov pc, lr
   %conv = fptosi float %c to i32
   store i32 %conv, i32* %p, align 4
-  ret i32 %conv
+  ret void
 }
 
-define i32 @float_to_uint_store(float %c, i32* nocapture %p) {
+define void @float_to_uint_store(float %c, i32* nocapture %p) {
 ; CHECK-LABEL: float_to_uint_store:
 ; CHECK:       @ BB#0:
 ; CHECK-NEXT:    vmov s0, r0
@@ -429,5 +429,5 @@ define i32 @float_to_uint_store(float %c, i32* nocapture %p) {
 ; CHECK-NEXT:    mov pc, lr
   %conv = fptoui float %c to i32
   store i32 %conv, i32* %p, align 4
-  ret i32 %conv
+  ret void
 }