blob: 2842830c19b15ce2e6f25a145293a30d8211b9da [file] [log] [blame]
Eric Christopher3883e662011-07-26 22:17:02 +00001// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
2// PR1721
3
4struct s {
5 unsigned long long u33: 33;
6} a, b;
7
8// This should have %0 and %1 truncated to 33 bits before any operation.
9// This can be done using i33 or an explicit and.
10_Bool test(void) {
11 // CHECK: and i64 %0, 8589934591
12 // CHECK: and i64 %1, 8589934591
13 return a.u33 + b.u33 != 0;
14}