Lines Matching +full:0 +full:x00050000

17 				       "u" #tp "_encode_bits(" #v ", " #field ") is 0x%llx != " #res "\n",	\
22 } while (0)
31 "le" #tp "_encode_bits(" #v ", " #field ") is 0x%llx != 0x%llx",\
37 } while (0)
46 "be" #tp "_encode_bits(" #v ", " #field ") is 0x%llx != 0x%llx", \
52 } while (0)
58 } while (0)
68 CHECK_ENC_GET(16, 1, 0x000f, 0x0001); in test_bitfields_constants()
69 CHECK_ENC_GET(16, 3, 0x00f0, 0x0030); in test_bitfields_constants()
70 CHECK_ENC_GET(16, 5, 0x0f00, 0x0500); in test_bitfields_constants()
71 CHECK_ENC_GET(16, 7, 0xf000, 0x7000); in test_bitfields_constants()
72 CHECK_ENC_GET(16, 14, 0x000f, 0x000e); in test_bitfields_constants()
73 CHECK_ENC_GET(16, 15, 0x00f0, 0x00f0); in test_bitfields_constants()
75 CHECK_ENC_GET_U(8, 1, 0x0f, 0x01); in test_bitfields_constants()
76 CHECK_ENC_GET_U(8, 3, 0xf0, 0x30); in test_bitfields_constants()
77 CHECK_ENC_GET_U(8, 14, 0x0f, 0x0e); in test_bitfields_constants()
78 CHECK_ENC_GET_U(8, 15, 0xf0, 0xf0); in test_bitfields_constants()
80 CHECK_ENC_GET(32, 1, 0x00000f00, 0x00000100); in test_bitfields_constants()
81 CHECK_ENC_GET(32, 3, 0x0000f000, 0x00003000); in test_bitfields_constants()
82 CHECK_ENC_GET(32, 5, 0x000f0000, 0x00050000); in test_bitfields_constants()
83 CHECK_ENC_GET(32, 7, 0x00f00000, 0x00700000); in test_bitfields_constants()
84 CHECK_ENC_GET(32, 14, 0x0f000000, 0x0e000000); in test_bitfields_constants()
85 CHECK_ENC_GET(32, 15, 0xf0000000, 0xf0000000); in test_bitfields_constants()
87 CHECK_ENC_GET(64, 1, 0x00000f0000000000ull, 0x0000010000000000ull); in test_bitfields_constants()
88 CHECK_ENC_GET(64, 3, 0x0000f00000000000ull, 0x0000300000000000ull); in test_bitfields_constants()
89 CHECK_ENC_GET(64, 5, 0x000f000000000000ull, 0x0005000000000000ull); in test_bitfields_constants()
90 CHECK_ENC_GET(64, 7, 0x00f0000000000000ull, 0x0070000000000000ull); in test_bitfields_constants()
91 CHECK_ENC_GET(64, 14, 0x0f00000000000000ull, 0x0e00000000000000ull); in test_bitfields_constants()
92 CHECK_ENC_GET(64, 15, 0xf000000000000000ull, 0xf000000000000000ull); in test_bitfields_constants()
98 for (v = 0; v < 1 << hweight32(mask); v++) \
101 } while (0)
105 CHECK(u8, 0x0f); in test_bitfields_variables()
106 CHECK(u8, 0xf0); in test_bitfields_variables()
107 CHECK(u8, 0x38); in test_bitfields_variables()
109 CHECK(u16, 0x0038); in test_bitfields_variables()
110 CHECK(u16, 0x0380); in test_bitfields_variables()
111 CHECK(u16, 0x3800); in test_bitfields_variables()
112 CHECK(u16, 0x8000); in test_bitfields_variables()
114 CHECK(u32, 0x80000000); in test_bitfields_variables()
115 CHECK(u32, 0x7f000000); in test_bitfields_variables()
116 CHECK(u32, 0x07e00000); in test_bitfields_variables()
117 CHECK(u32, 0x00018000); in test_bitfields_variables()
119 CHECK(u64, 0x8000000000000000ull); in test_bitfields_variables()
120 CHECK(u64, 0x7f00000000000000ull); in test_bitfields_variables()
121 CHECK(u64, 0x0001800000000000ull); in test_bitfields_variables()
122 CHECK(u64, 0x0000000080000000ull); in test_bitfields_variables()
123 CHECK(u64, 0x000000007f000000ull); in test_bitfields_variables()
124 CHECK(u64, 0x0000000018000000ull); in test_bitfields_variables()
125 CHECK(u64, 0x0000001f8000000ull); in test_bitfields_variables()
132 CHECK_ENC_GET(16, 16, 0x0f00, 0x1000); in test_bitfields_compile()
133 u32_encode_bits(7, 0x06000000); in test_bitfields_compile()
136 u16_encode_bits(0, 0x60000); in test_bitfields_compile()