diff options
author | Weining Lu <luweining@loongson.cn> | 2023-05-16 17:43:59 +0800 |
---|---|---|
committer | Weining Lu <luweining@loongson.cn> | 2023-05-16 21:10:15 +0800 |
commit | ddb27b1870691595173608ce0c4a0c70ad16513d (patch) | |
tree | 5349dd65e31fb98bbb2ab212f386588854ede061 /mlir | |
parent | 2cf0314029804ab467517b390f0fa2a48a34dbe7 (diff) | |
download | llvm-ddb27b1870691595173608ce0c4a0c70ad16513d.tar.gz |
[Clang][LoongArch] Pass the -mabi and -target-abi options to as and cc1as respectively
This change is necessary to set correct EFlags according to the
options (-m*-float and -mabi=) passed to clang when input is assembly.
Note: `-mabi=` is not documented by `as`.
```
$ as --version
GNU assembler (GNU Binutils) 2.40.50.20230316
...
$ as --target-help
LARCH options:
```
But we can see gcc invokes `as` and passes the `-mabi=` option when compiling C or assembly.
```
$ gcc -c a.c -v 2>&1 -msoft-float | grep "as -v"
as -v -mabi=lp64s -o a.o /tmp/ccFrxzZi.s
$ gcc -c a.s -v 2>&1 -msoft-float | grep "as -v"
as -v -mabi=lp64s -o a.o a.s
```
Reviewed By: xen0n
Differential Revision: https://reviews.llvm.org/D150537
Diffstat (limited to 'mlir')
0 files changed, 0 insertions, 0 deletions