================
@@ -0,0 +1,24 @@
+! Check Flang on AIX OBJECT_MODE handling and -maix* flag behavior.
+!REQUIRES: system-aix
+
+!RUN: env -u OBJECT_MODE not %flang %s 2>&1 | FileCheck 
-check-prefix=MAIX32-ERROR %s
+
+!RUN: env OBJECT_MODE=32 not %flang %s 2>&1 | FileCheck 
-check-prefix=MAIX32-ERROR %s
+
+!RUN: env OBJECT_MODE=32_64 not %flang %s 2>&1 | FileCheck 
-check-prefix=MAIX32-ERROR %s
+
+!RUN: env OBJECT_MODE=any not %flang %s 2>&1 | FileCheck 
-check-prefix=MAIX32-ERROR %s
+
+!RUN: env OBJECT_MODE=64 %flang -print-target-triple %s 2>&1 | FileCheck 
-check-prefix=MODE-64BIT %s
+
+!RUN: not %flang -maix32 %s 2>&1 | FileCheck -check-prefix=MAIX32-ERROR %s
----------------
kkwli wrote:

Actually, this test is similar to the one on line 16. The test on line 14 is 
for the compile with `-maix32` and the setting of `OBJECT_MODE` inherited from 
the LIT environment which is `OBJECT_MODE=64` set in `lit.cfg.py`. The 
difference between these two is with and without the explicit `OBJECT_MODE` 
setting on the command. The test on line 4 is to compile with `OBJECT_MODE` 
unset. Anyway, I will remove this on.

https://github.com/llvm/llvm-project/pull/209919
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to