Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / mips-unsigned-ext-var.c
blobdee6a92279f610de2319501ad5d9dafb858e3638
1 // RUN: %clang_cc1 -triple mips64-unknown-linux -O2 -target-abi n64 -emit-llvm %s -o - | FileCheck %s -check-prefix=N64
2 // RUN: %clang_cc1 -triple mips64-unknown-linux -O2 -target-abi n32 -emit-llvm %s -o - | FileCheck %s -check-prefix=N32
3 // RUN: %clang_cc1 -triple mips-unknown-linux -O2 -target-abi o32 -emit-llvm %s -o - | FileCheck %s -check-prefix=O32
5 #include <stdarg.h>
7 unsigned foo(int x, ...) {
8 va_list valist;
9 va_start(valist, x);
10 unsigned a;
11 a = va_arg(valist, unsigned);
12 return a;
15 void foo1(void) {
16 unsigned f = 0xffffffe0;
17 foo(1,f);
20 //N64: call signext i32 (i32, ...) @foo(i32 signext poison, i32 noundef signext -32)
21 //N32: call signext i32 (i32, ...) @foo(i32 signext poison, i32 noundef signext -32)
22 //O32: call i32 (i32, ...) @foo(i32 signext poison, i32 noundef signext -32)