Lines Matching defs:store
435 nir_intrinsic_instr *store = get_intrinsic(nir_intrinsic_store_deref, i);
436 ASSERT_TRUE(store->src[1].is_ssa);
437 EXPECT_EQ(store->src[1].ssa, stored_value);
569 /* Our approach here is a bit scorched-earth. We expect the volatile store
570 * in the middle to cause both that store and the one before it to be kept.
571 * Technically, volatile only prevents combining the volatile store with
572 * another store and one could argue that the store before the volatile and
574 * treat a volatile store like an atomic and prevent any combining across
851 nir_intrinsic_instr *store;
853 store = get_intrinsic(nir_intrinsic_store_deref, 0);
854 ASSERT_EQ(nir_intrinsic_get_var(store, 0), x[0]);
855 store = get_intrinsic(nir_intrinsic_store_deref, 1);
856 ASSERT_EQ(nir_intrinsic_get_var(store, 0), x[1]);
858 store = get_intrinsic(nir_intrinsic_store_deref, 2);
859 ASSERT_EQ(nir_intrinsic_get_var(store, 0), y[0]);
860 store = get_intrinsic(nir_intrinsic_store_deref, 3);
861 ASSERT_EQ(nir_intrinsic_get_var(store, 0), y[1]);
932 nir_intrinsic_instr *store;
934 store = get_intrinsic(nir_intrinsic_store_deref, 0);
935 ASSERT_EQ(nir_intrinsic_get_var(store, 0), x[0]);
936 store = get_intrinsic(nir_intrinsic_store_deref, 1);
937 ASSERT_EQ(nir_intrinsic_get_var(store, 0), x[1]);
939 store = get_intrinsic(nir_intrinsic_store_deref, 2);
940 ASSERT_EQ(nir_intrinsic_get_var(store, 0), y[0]);
941 store = get_intrinsic(nir_intrinsic_store_deref, 3);
942 ASSERT_EQ(nir_intrinsic_get_var(store, 0), y[1]);
1071 nir_intrinsic_instr *store = get_intrinsic(nir_intrinsic_store_deref, i);
1072 ASSERT_TRUE(store->src[1].is_ssa);
1073 EXPECT_EQ(store->src[1].ssa, stored_value);
1092 /* This store should use the value loaded from in1. */
1106 nir_intrinsic_instr *store = get_intrinsic(nir_intrinsic_store_deref, 2);
1107 ASSERT_TRUE(store->src[1].is_ssa);
1110 ASSERT_TRUE(nir_src_as_alu_instr(store->src[1]));
1166 nir_intrinsic_instr *store = get_intrinsic(nir_intrinsic_store_deref, 1);
1167 ASSERT_TRUE(store->src[1].is_ssa);
1168 ASSERT_TRUE(nir_src_as_alu_instr(store->src[1]));
1204 /* Third store will just use the value from first store. */
1210 /* Fourth store will compose first and second store values. */
1229 /* Load from vec[idx] to store in out. This load should be dropped. */
1306 /* Load from arr[idx] to store in out. This load should be dropped. */
1353 /* Load ssbo0.x and store it in out.x. This load should be dropped */
1399 /* Load ssbo0.x and store it in out.x. This load should not be dropped */
1443 /* Load ssbo_arr[0].x and store it in out.x. This load should not be dropped */
1486 /* Load ssbo_arr[0].x and store it in out.x. This load should be dropped */
1535 /* Load ssbo_arr[0].x and store it in out.x. This load should not be dropped */
1581 /* Our approach here is a bit scorched-earth. We expect the volatile store
1582 * in the middle to cause both that store and the one before it to be kept.
1583 * Technically, volatile only prevents combining the volatile store with
1584 * another store and one could argue that the store before the volatile and
1586 * treat a volatile store like an atomic and prevent any combining across
1603 /* Our approach here is a bit scorched-earth. We expect the volatile store
1604 * in the middle to cause both that store and the one before it to be kept.
1605 * Technically, volatile only prevents combining the volatile store with
1606 * another store and one could argue that the store before the volatile and
1608 * treat a volatile store like an atomic and prevent any combining across
1622 /* Each arm of the if statement will overwrite one store. */
1670 nir_intrinsic_instr *store = get_intrinsic(nir_intrinsic_store_deref, 0);
1671 ASSERT_TRUE(store->src[1].is_ssa);
1672 EXPECT_EQ(store->src[1].ssa, load_v2);
1688 nir_intrinsic_instr *store = get_intrinsic(nir_intrinsic_store_deref, 0);
1689 ASSERT_TRUE(store->src[1].is_ssa);
1690 EXPECT_EQ(store->src[1].ssa, load_v2);
1716 nir_intrinsic_instr *store = get_intrinsic(nir_intrinsic_store_deref, 0);
1717 ASSERT_TRUE(store->src[1].is_ssa);
1718 EXPECT_EQ(store->src[1].ssa, load_v2);
1738 nir_intrinsic_instr *store = get_intrinsic(nir_intrinsic_store_deref, 0);
1739 ASSERT_TRUE(store->src[1].is_ssa);
1740 EXPECT_EQ(store->src[1].ssa, load_v2);
1747 /* Both branches will overwrite, making the previous store dead. */
1783 /* Because it is before the barrier, this will kill the previous store to that target. */
1847 /* Clean up to verify from where the values in combined store are coming. */
1862 << "Source value for component " << i << " of store is wrong";
1864 << "Source component for component " << i << " of store is wrong";
1886 /* Clean up to verify from where the values in combined store are coming. */
1933 /* Store to vector[2], overlapping with previous store. */
1952 /* Clean up to verify from where the values in combined store are coming. */