[PATCH] D95135: Fix signedness in vector bitcast evaluation

2021-01-25 Thread Sven van Haastregt via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG14947cd04701: [clang] Fix signedness in vector bitcast evaluation (authored by svenvh). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D95135/new/ https://rev

[PATCH] D95135: Fix signedness in vector bitcast evaluation

2021-01-21 Thread Sven van Haastregt via Phabricator via cfe-commits
svenvh added inline comments. Comment at: clang/test/CodeGenOpenCL/vector_literals.cl:71 + // CHECK: extractelement <2 x i32> %{{[0-9]+}}, i64 0 + unsigned int withCast = ((int2)((int2)(12, 34))).s0; +} Anastasia wrote: > I wonder if both `(int2)` are needed i.

[PATCH] D95135: Fix signedness in vector bitcast evaluation

2021-01-21 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia accepted this revision. Anastasia added a comment. This revision is now accepted and ready to land. LGTM, great! Thanks! Perhaps the test can be simplified before committing... Comment at: clang/test/CodeGenOpenCL/vector_literals.cl:71 + // CHECK: extractelement <2 x

[PATCH] D95135: Fix signedness in vector bitcast evaluation

2021-01-21 Thread Sven van Haastregt via Phabricator via cfe-commits
svenvh created this revision. svenvh added a reviewer: Anastasia. svenvh requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. The included test case triggered a sign assertion on the result in `Success()`. This was caused by the APSInt created