From 054fceb5eef383cad943cc695fe25ccbff66d2d2 Mon Sep 17 00:00:00 2001 From: James Greenhalgh Date: Fri, 18 Oct 2013 08:31:15 +0000 Subject: [PATCH] [AArch64] Fix types for vcvt_n intrinsics. gcc/ * config/aarch64/arm_neon.h (vcvt_n_<32,64>_<32,64>): Correct argument types. From-SVN: r203812 --- gcc/ChangeLog | 5 +++++ gcc/config/aarch64/arm_neon.h | 16 ++++++++-------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d7cb288c20e..10be8130dfc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2013-10-18 James Greenhalgh + + * config/aarch64/arm_neon.h + (vcvt_n_<32,64>_<32,64>): Correct argument types. + 2013-10-17 Sriraman Tallam * opth-gen.awk: Define target_flags_explicit. diff --git a/gcc/config/aarch64/arm_neon.h b/gcc/config/aarch64/arm_neon.h index f7c9db692a4..15d1ed96584 100644 --- a/gcc/config/aarch64/arm_neon.h +++ b/gcc/config/aarch64/arm_neon.h @@ -5442,7 +5442,7 @@ static float32x2_t vdup_n_f32 (float32_t); __extension__ \ ({ \ int64_t a_ = (a); \ - int64_t result; \ + float64_t result; \ __asm__ ("scvtf %d0,%d1,%2" \ : "=w"(result) \ : "w"(a_), "i"(b) \ @@ -5454,7 +5454,7 @@ static float32x2_t vdup_n_f32 (float32_t); __extension__ \ ({ \ uint64_t a_ = (a); \ - uint64_t result; \ + float64_t result; \ __asm__ ("ucvtf %d0,%d1,%2" \ : "=w"(result) \ : "w"(a_), "i"(b) \ @@ -5466,7 +5466,7 @@ static float32x2_t vdup_n_f32 (float32_t); __extension__ \ ({ \ float64_t a_ = (a); \ - float64_t result; \ + int64_t result; \ __asm__ ("fcvtzs %d0,%d1,%2" \ : "=w"(result) \ : "w"(a_), "i"(b) \ @@ -5478,7 +5478,7 @@ static float32x2_t vdup_n_f32 (float32_t); __extension__ \ ({ \ float64_t a_ = (a); \ - float64_t result; \ + uint64_t result; \ __asm__ ("fcvtzu %d0,%d1,%2" \ : "=w"(result) \ : "w"(a_), "i"(b) \ @@ -5586,7 +5586,7 @@ static float32x2_t vdup_n_f32 (float32_t); __extension__ \ ({ \ int32_t a_ = (a); \ - int32_t result; \ + float32_t result; \ __asm__ ("scvtf %s0,%s1,%2" \ : "=w"(result) \ : "w"(a_), "i"(b) \ @@ -5598,7 +5598,7 @@ static float32x2_t vdup_n_f32 (float32_t); __extension__ \ ({ \ uint32_t a_ = (a); \ - uint32_t result; \ + float32_t result; \ __asm__ ("ucvtf %s0,%s1,%2" \ : "=w"(result) \ : "w"(a_), "i"(b) \ @@ -5610,7 +5610,7 @@ static float32x2_t vdup_n_f32 (float32_t); __extension__ \ ({ \ float32_t a_ = (a); \ - float32_t result; \ + int32_t result; \ __asm__ ("fcvtzs %s0,%s1,%2" \ : "=w"(result) \ : "w"(a_), "i"(b) \ @@ -5622,7 +5622,7 @@ static float32x2_t vdup_n_f32 (float32_t); __extension__ \ ({ \ float32_t a_ = (a); \ - float32_t result; \ + uint32_t result; \ __asm__ ("fcvtzu %s0,%s1,%2" \ : "=w"(result) \ : "w"(a_), "i"(b) \ -- 2.30.2