diff options
author | Chris Lattner <sabre@nondot.org> | 2009-03-31 07:46:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-03-31 07:46:52 +0000 |
commit | 5d68896c7ba816f1ef33691336511b832d10e45a (patch) | |
tree | cb71a09610a7ac5f56eded849ccc938cca33dcc6 /clang/test/CodeGen/ext-vector.c | |
parent | 42bae59678833619040301fba600ad476344ae1e (diff) | |
download | bcm5719-llvm-5d68896c7ba816f1ef33691336511b832d10e45a.tar.gz bcm5719-llvm-5d68896c7ba816f1ef33691336511b832d10e45a.zip |
Codegen sometimes crashes on comparisons that aren't legal, just
disable this feature for now, to err on the side of rejecting instead
of sometimes crashing. rdar://6326239
llvm-svn: 68088
Diffstat (limited to 'clang/test/CodeGen/ext-vector.c')
-rw-r--r-- | clang/test/CodeGen/ext-vector.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/clang/test/CodeGen/ext-vector.c b/clang/test/CodeGen/ext-vector.c index 249142a5104..e3b6211ee99 100644 --- a/clang/test/CodeGen/ext-vector.c +++ b/clang/test/CodeGen/ext-vector.c @@ -74,14 +74,17 @@ void test6(float4 *ap, float4 *bp, float c) { a *= c; a /= c; + // Vector comparisons can sometimes crash the x86 backend: rdar://6326239, + // reject them until the implementation is stable. +#if 0 int4 cmp; - cmp = a < b; cmp = a <= b; cmp = a < b; cmp = a >= b; cmp = a == b; cmp = a != b; +#endif } void test7(int4 *ap, int4 *bp, int c) { @@ -112,12 +115,15 @@ void test7(int4 *ap, int4 *bp, int c) { a /= c; a %= c; + // Vector comparisons can sometimes crash the x86 backend: rdar://6326239, + // reject them until the implementation is stable. +#if 0 int4 cmp; - cmp = a < b; cmp = a <= b; cmp = a < b; cmp = a >= b; cmp = a == b; cmp = a != b; +#endif } |