Commit 8e65ce5
committed
[flang2] Generate loads of complex variables with correct alignment
flang2 calls the function make_load() to create various types of load
instructions in the LLVM IR output. The function accepts a "flags" argument
of type LL_InstrListFlags which should encode the alignment of the load,
among other things. Apparently, for the IL_LDSCMPLX, IL_LDDCMPLX, and
IL_LDQCMPLX opcodes, the flags had never been computed correctly. This
patch makes such loads consistent with loads of other types, and also adds
a test case.1 parent 3de1cba commit 8e65ce5
File tree
2 files changed
+52
-5
lines changed- test/llvm_ir_correct
- tools/flang2/flang2exe
2 files changed
+52
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8572 | 8572 | | |
8573 | 8573 | | |
8574 | 8574 | | |
8575 | | - | |
8576 | | - | |
8577 | | - | |
8578 | | - | |
8579 | | - | |
8580 | 8575 | | |
8581 | 8576 | | |
8582 | 8577 | | |
8583 | 8578 | | |
| 8579 | + | |
| 8580 | + | |
8584 | 8581 | | |
8585 | 8582 | | |
8586 | 8583 | | |
| |||
0 commit comments