Issue 114759
Summary `push OFFSET symbol` generates wrong code for Intel syntax on i686
Labels new issue
Assignees
Reporter lhmouse
    https://godbolt.org/z/vfE68E3c9
```asm
; .att_syntax
; pushl $_foo

.intel_syntax noprefix
push OFFSET _foo
```

This generates a 16-bit push for i686-pc-linux and causes an error for i686-w64-mingw32:

> \<source\>:5:1: error: unsupported relocation type
> push OFFSET _foo

Expected behavior is that it should generate a 32-bit push that references `_foo` as an absolute address.

x86-64 is not affected.

_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to