[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / CodeGen / win64-i128.c
blobe10b2be0530eb627a1706d83826bb49c2b5e3e3b
1 // RUN: %clang_cc1 -triple x86_64-windows-gnu -emit-llvm -o - %s \
2 // RUN: | FileCheck %s --check-prefix=GNU64
3 // RUN: %clang_cc1 -triple x86_64-windows-msvc -emit-llvm -o - %s \
4 // RUN: | FileCheck %s --check-prefix=MSC64
6 typedef int int128_t __attribute__((mode(TI)));
8 int128_t foo(void) { return 0; }
10 // GNU64: define dso_local <2 x i64> @foo()
11 // MSC64: define dso_local <2 x i64> @foo()
13 int128_t bar(int128_t a, int128_t b) { return a * b; }
15 // GNU64: define dso_local <2 x i64> @bar(ptr noundef %0, ptr noundef %1)
16 // MSC64: define dso_local <2 x i64> @bar(ptr noundef %0, ptr noundef %1)
18 void vararg(int a, ...) {
19 // GNU64-LABEL: define{{.*}} void @vararg
20 // MSC64-LABEL: define{{.*}} void @vararg
21 __builtin_va_list ap;
22 __builtin_va_start(ap, a);
23 int128_t i = __builtin_va_arg(ap, int128_t);
24 // GNU64: load ptr, ptr
25 // GNU64: load i128, ptr
26 // MSC64: load ptr, ptr
27 // MSC64: load i128, ptr
28 __builtin_va_end(ap);