Skip to content

Provide implementations of __builtin_ia32_vec_ext_* #5919

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 26, 2021

Conversation

tautschnig
Copy link
Collaborator

@tautschnig tautschnig commented Mar 12, 2021

These built-ins extract an element of a vector.

Fixes: #5903

Includes #5913, and will remain a Draft until that PR is merged.

  • Each commit message has a non-empty body, explaining why the change was made.
  • Methods or procedures I have added are documented, following the guidelines provided in CODING_STANDARD.md.
  • n/a The feature or user visible behaviour I have added or modified has been documented in the User Guide in doc/cprover-manual/
  • Regression or unit tests are included, or existing tests cover the modified code (in this case I have detailed which ones those are in the commit message).
  • n/a My commit message includes data points confirming performance improvements (if claimed).
  • My PR is restricted to a single feature or bugfix.
  • n/a White-space or formatting changes outside the feature-related changed lines are in commits of their own.

@codecov
Copy link

codecov bot commented Mar 13, 2021

Codecov Report

Merging #5919 (cce048b) into develop (95e1161) will increase coverage by 0.01%.
The diff coverage is 78.66%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #5919      +/-   ##
===========================================
+ Coverage    75.02%   75.04%   +0.01%     
===========================================
  Files         1431     1433       +2     
  Lines       155595   155800     +205     
===========================================
+ Hits        116734   116918     +184     
- Misses       38861    38882      +21     
Impacted Files Coverage Δ
src/ansi-c/c_typecheck_base.h 100.00% <ø> (ø)
src/goto-programs/goto_convert_class.h 87.30% <ø> (ø)
...rc/ansi-c/c_typecheck_gcc_polymorphic_builtins.cpp 76.58% <45.07%> (-4.36%) ⬇️
src/ansi-c/c_typecheck_expr.cpp 75.12% <78.37%> (-0.17%) ⬇️
src/goto-programs/goto_convert_side_effect.cpp 93.45% <94.73%> (+0.22%) ⬆️
src/ansi-c/c_expr.cpp 96.55% <96.55%> (ø)
src/ansi-c/c_expr.h 100.00% <100.00%> (ø)
src/goto-programs/goto_program.cpp 66.60% <100.00%> (+0.23%) ⬆️
src/goto-programs/remove_vector.cpp 97.05% <100.00%> (+0.20%) ⬆️
src/util/expr.cpp 75.73% <0.00%> (-0.74%) ⬇️
... and 8 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f03779a...cce048b. Read the comment docs.

@tautschnig tautschnig force-pushed the fix-5903 branch 5 times, most recently from f91a28b to 4f1ac87 Compare March 17, 2021 00:34
@tautschnig tautschnig changed the title Provide implementations of __builtin_ia32_vec_ext_* Provide implementations of __builtin_ia32_vec_ext_* [depends-on: #5913] Mar 18, 2021
@tautschnig tautschnig force-pushed the fix-5903 branch 2 times, most recently from 36d4e2d to a7d0ef9 Compare March 25, 2021 22:46
@tautschnig tautschnig marked this pull request as ready for review March 25, 2021 22:47
@tautschnig tautschnig assigned kroening and unassigned tautschnig Mar 25, 2021
@tautschnig tautschnig changed the title Provide implementations of __builtin_ia32_vec_ext_* [depends-on: #5913] Provide implementations of __builtin_ia32_vec_ext_* Mar 25, 2021
@@ -0,0 +1,8 @@
CORE gcc-only broken-smt-backend
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still broken after #5974? Also, there is an #ifdef _MSC_VER in the test, which suggests it might work on Visual Studio?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The SMT conversion still fails (at src/solvers/smt2/smt2_conv.cpp:2531 function: convert_typecast), but Visual Studio should indeed be ok. Fixed.

@kroening kroening assigned tautschnig and unassigned kroening Mar 26, 2021
@tautschnig tautschnig force-pushed the fix-5903 branch 3 times, most recently from 4bc80ac to a36b170 Compare March 26, 2021 10:17
Additional declarations based on Clang's BuiltinsX86.def. For
`__builtin_ia32_sqrtpd512` and `__builtin_ia32_sqrtps512`, Clang and GCC
disagree about the number of parameters (GCC supports one, Clang
supports two).
We previously only transformed the left-hand side and arguments, but
skipped over the function itself. This omission became apparent when
trying to run the upcoming SIMD1 test (added in a later commit, further
bug fixes are necessary).
This omission became apparent when trying to run the upcoming SIMD1 test
(added in a later commit, further bug fixes are necessary).
These built-ins extract an element of a vector.

Fixes: diffblue#5903
@tautschnig tautschnig merged commit 7e2f0a5 into diffblue:develop Mar 26, 2021
@tautschnig tautschnig deleted the fix-5903 branch March 26, 2021 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compilation errors with SIMD libraries in different platforms
2 participants