• Home
  • Raw
  • Download

Lines Matching refs:Alignment

75 TEST(NodesVector, Alignment) {  in TEST()  argument
76 EXPECT_TRUE(Alignment(1, 0).IsAlignedAt(1)); in TEST()
77 EXPECT_FALSE(Alignment(1, 0).IsAlignedAt(2)); in TEST()
79 EXPECT_TRUE(Alignment(2, 0).IsAlignedAt(1)); in TEST()
80 EXPECT_TRUE(Alignment(2, 1).IsAlignedAt(1)); in TEST()
81 EXPECT_TRUE(Alignment(2, 0).IsAlignedAt(2)); in TEST()
82 EXPECT_FALSE(Alignment(2, 1).IsAlignedAt(2)); in TEST()
83 EXPECT_FALSE(Alignment(2, 0).IsAlignedAt(4)); in TEST()
84 EXPECT_FALSE(Alignment(2, 1).IsAlignedAt(4)); in TEST()
86 EXPECT_TRUE(Alignment(4, 0).IsAlignedAt(1)); in TEST()
87 EXPECT_TRUE(Alignment(4, 2).IsAlignedAt(1)); in TEST()
88 EXPECT_TRUE(Alignment(4, 0).IsAlignedAt(2)); in TEST()
89 EXPECT_TRUE(Alignment(4, 2).IsAlignedAt(2)); in TEST()
90 EXPECT_TRUE(Alignment(4, 0).IsAlignedAt(4)); in TEST()
91 EXPECT_FALSE(Alignment(4, 2).IsAlignedAt(4)); in TEST()
92 EXPECT_FALSE(Alignment(4, 0).IsAlignedAt(8)); in TEST()
93 EXPECT_FALSE(Alignment(4, 2).IsAlignedAt(8)); in TEST()
95 EXPECT_TRUE(Alignment(16, 0).IsAlignedAt(1)); in TEST()
96 EXPECT_TRUE(Alignment(16, 0).IsAlignedAt(2)); in TEST()
97 EXPECT_TRUE(Alignment(16, 0).IsAlignedAt(4)); in TEST()
98 EXPECT_TRUE(Alignment(16, 8).IsAlignedAt(8)); in TEST()
99 EXPECT_TRUE(Alignment(16, 0).IsAlignedAt(16)); in TEST()
100 EXPECT_FALSE(Alignment(16, 1).IsAlignedAt(16)); in TEST()
101 EXPECT_FALSE(Alignment(16, 7).IsAlignedAt(16)); in TEST()
102 EXPECT_FALSE(Alignment(16, 0).IsAlignedAt(32)); in TEST()
104 EXPECT_EQ(16u, Alignment(16, 0).Base()); in TEST()
105 EXPECT_EQ(0u, Alignment(16, 0).Offset()); in TEST()
106 EXPECT_EQ(4u, Alignment(16, 4).Offset()); in TEST()
110 EXPECT_TRUE(Alignment(2, 0) == Alignment(2, 0)); in TEST()
111 EXPECT_TRUE(Alignment(2, 1) == Alignment(2, 1)); in TEST()
112 EXPECT_TRUE(Alignment(4, 0) == Alignment(4, 0)); in TEST()
113 EXPECT_TRUE(Alignment(4, 2) == Alignment(4, 2)); in TEST()
115 EXPECT_FALSE(Alignment(4, 0) == Alignment(2, 0)); in TEST()
116 EXPECT_FALSE(Alignment(4, 0) == Alignment(4, 1)); in TEST()
117 EXPECT_FALSE(Alignment(4, 0) == Alignment(8, 0)); in TEST()
121 EXPECT_STREQ("ALIGN(1,0)", Alignment(1, 0).ToString().c_str()); in TEST()
123 EXPECT_STREQ("ALIGN(2,0)", Alignment(2, 0).ToString().c_str()); in TEST()
124 EXPECT_STREQ("ALIGN(2,1)", Alignment(2, 1).ToString().c_str()); in TEST()
126 EXPECT_STREQ("ALIGN(16,0)", Alignment(16, 0).ToString().c_str()); in TEST()
127 EXPECT_STREQ("ALIGN(16,1)", Alignment(16, 1).ToString().c_str()); in TEST()
128 EXPECT_STREQ("ALIGN(16,8)", Alignment(16, 8).ToString().c_str()); in TEST()
129 EXPECT_STREQ("ALIGN(16,9)", Alignment(16, 9).ToString().c_str()); in TEST()
237 EXPECT_TRUE(v0->GetAlignment() == Alignment(4, 0)); in TEST_F()
238 EXPECT_TRUE(v1->GetAlignment() == Alignment(4, 0)); in TEST_F()
239 EXPECT_TRUE(v2->GetAlignment() == Alignment(4, 0)); in TEST_F()
241 v1->SetAlignment(Alignment(8, 0)); in TEST_F()
243 EXPECT_TRUE(v1->GetAlignment() == Alignment(8, 0)); in TEST_F()
275 EXPECT_TRUE(v0->GetAlignment() == Alignment(4, 0)); in TEST_F()
276 EXPECT_TRUE(v1->GetAlignment() == Alignment(4, 0)); in TEST_F()
278 v1->SetAlignment(Alignment(8, 0)); in TEST_F()
280 EXPECT_TRUE(v1->GetAlignment() == Alignment(8, 0)); in TEST_F()