blob: bf0ca5575a6ad05d7571178c887b403ec4ed442b [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) {
Eric Christopher041e4092011-07-26 22:42:01 +000011 // CHECK: and i64 %[[TMP1:[0-9]+]], 8589934591
12 // CHECK-NOT: and i64 [[TMP1]], 8589934591
13 // CHECK: and i64 %{{[0-9]}}, 8589934591
Eric Christopher3883e662011-07-26 22:17:02 +000014 return a.u33 + b.u33 != 0;
15}