[PATCH] D32102: Keep EXTRACT_VECTOR_ELT result type as f128 for Android x86_64.

Pirama Arumuga Nainar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 18 10:42:05 PDT 2017


pirama added reviewers: echristo, ab, niravd.
pirama added a comment.

LGTM.  Adding some other contributors to SelectionDAG to review.



================
Comment at: test/CodeGen/X86/fp128-extract.ll:11
+; Test the softened result of extractelement op code.
+define hidden fp128 @TestExtract() local_unnamed_addr align 2 {
+entry:
----------------
Remove `hidden`, `local_unnamed_addr` and `align`?


================
Comment at: test/CodeGen/X86/fp128-extract.ll:12
+define hidden fp128 @TestExtract() local_unnamed_addr align 2 {
+entry:
+  ; Simplified instruction pattern from the output of llvm before r289042,
----------------
I also think the simplified version of the test below is preferable because it's easier to understand why the test fails without this fix.

```
define fp128 @foo(<2 x double> %x) {
    %a = fpext <2 x double> %x to <2 x fp128>
    %1 = extractelement <2 x fp128> %a, i32 0
    %2 = extractelement <2 x fp128> %a, i32 1
    %3 = fmul fp128 %1, %2
    ret fp128 %3
}
```

If you want to test this extended pattern from boost, consider adding both?




https://reviews.llvm.org/D32102





More information about the llvm-commits mailing list