[test-suite] r219205 - [PowerPC] Fix lvsr.c and lvsl.c tests
Bill Schmidt
wschmidt at linux.vnet.ibm.com
Tue Oct 7 06:32:05 PDT 2014
Author: wschmidt
Date: Tue Oct 7 08:32:05 2014
New Revision: 219205
URL: http://llvm.org/viewvc/llvm-project?rev=219205&view=rev
Log:
[PowerPC] Fix lvsr.c and lvsl.c tests
The new Altivec tests I added to projects/test-suite yesterday
contained incorrect checking of the results. I apparently checked the
wrong log file during testing and missed this. /shamefaced
Now the tests actually work...
Modified:
test-suite/trunk/SingleSource/UnitTests/Vector/Altivec/lvsl.c
test-suite/trunk/SingleSource/UnitTests/Vector/Altivec/lvsr.c
Modified: test-suite/trunk/SingleSource/UnitTests/Vector/Altivec/lvsl.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/UnitTests/Vector/Altivec/lvsl.c?rev=219205&r1=219204&r2=219205&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/UnitTests/Vector/Altivec/lvsl.c (original)
+++ test-suite/trunk/SingleSource/UnitTests/Vector/Altivec/lvsl.c Tue Oct 7 08:32:05 2014
@@ -10,11 +10,11 @@ __attribute__((__aligned__(16))) float f
static void test() {
vector unsigned char expected = {4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19};
- check (vec_lvsl(0, &sc[4]) == expected);
- check (vec_lvsl(0, &uc[4]) == expected);
- check (vec_lvsl(0, &ss[2]) == expected);
- check (vec_lvsl(0, &us[2]) == expected);
- check (vec_lvsl(0, &si[1]) == expected);
- check (vec_lvsl(0, &ui[1]) == expected);
- check (vec_lvsl(0, & f[1]) == expected);
+ check (vec_all_eq(vec_lvsl(0, &sc[4]), expected), "sc");
+ check (vec_all_eq(vec_lvsl(0, &uc[4]), expected), "uc");
+ check (vec_all_eq(vec_lvsl(0, &ss[2]), expected), "ss");
+ check (vec_all_eq(vec_lvsl(0, &us[2]), expected), "us");
+ check (vec_all_eq(vec_lvsl(0, &si[1]), expected), "si");
+ check (vec_all_eq(vec_lvsl(0, &ui[1]), expected), "ui");
+ check (vec_all_eq(vec_lvsl(0, & f[1]), expected), "f");
}
Modified: test-suite/trunk/SingleSource/UnitTests/Vector/Altivec/lvsr.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/UnitTests/Vector/Altivec/lvsr.c?rev=219205&r1=219204&r2=219205&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/UnitTests/Vector/Altivec/lvsr.c (original)
+++ test-suite/trunk/SingleSource/UnitTests/Vector/Altivec/lvsr.c Tue Oct 7 08:32:05 2014
@@ -11,11 +11,11 @@ __attribute__((__aligned__(16))) float f
static void test() {
vector unsigned char expected = {12,13,14,15,16,17,18,19,
20,21,22,23,24,25,26,27};
- check (vec_lvsr(0, &sc[4]) == expected);
- check (vec_lvsr(0, &uc[4]) == expected);
- check (vec_lvsr(0, &ss[2]) == expected);
- check (vec_lvsr(0, &us[2]) == expected);
- check (vec_lvsr(0, &si[1]) == expected);
- check (vec_lvsr(0, &ui[1]) == expected);
- check (vec_lvsr(0, & f[1]) == expected);
+ check (vec_all_eq(vec_lvsr(0, &sc[4]), expected), "sc");
+ check (vec_all_eq(vec_lvsr(0, &uc[4]), expected), "uc");
+ check (vec_all_eq(vec_lvsr(0, &ss[2]), expected), "ss");
+ check (vec_all_eq(vec_lvsr(0, &us[2]), expected), "us");
+ check (vec_all_eq(vec_lvsr(0, &si[1]), expected), "si");
+ check (vec_all_eq(vec_lvsr(0, &ui[1]), expected), "ui");
+ check (vec_all_eq(vec_lvsr(0, & f[1]), expected), "f");
}
More information about the llvm-commits
mailing list