xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/2008-01-07-UnusualIntSize.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1 // FIXME: 32-bit target?
2 // RUN: %clang_cc1 -triple x86_64-unknown-unknown %s -emit-llvm -o - | FileCheck %s
3 // PR1721
4 
5 struct s {
6   unsigned long long u33: 33;
7 } a, b;
8 
9 // This should have %0 and %1 truncated to 33 bits before any operation.
10 // This can be done using i33 or an explicit and.
test(void)11 _Bool test(void) {
12   // CHECK: and i64 %[[TMP1:[^,]+]], 8589934591
13   // CHECK-NOT: and i64 [[TMP1]], 8589934591
14   // CHECK: and i64 %{{[^,]+}}, 8589934591
15   return a.u33 + b.u33 != 0;
16 }
17